I submitted this question on the powermock google message board as well but figured I do this here too. So I have a 3rd party library I have no source for but no it is a final class with an inner static class with a public method. I have a class I am trying to write a
test for that uses it. I am posting this code example to see if anyone has any ideas. It is a big abreviation from the actaul code but I believe I get all the important parts. Sadly I did not save my previous question so I have retype this whole thing.
Here is a skeleton of the 3rd party library:
Here is the class that uses it:
and here's the test
So I am trying to figure out how to mock new of a static inner class of a final class so I can mock its method call.