I\'m attempting to test a class with a number of private classes (yes, I know this is generally considered poor practice for testability, but this question is not in regards to
You can mock it like this:
InnerClassType innerClass = (InnerClassType) Mockito.mock( Class.forName(EnclosingClass.class.getName() + "$InnerClass") );