Two options here.
First and best is to not call new
in the method. Pass in an InnerClass
factory instance to the constructor of the class under test. Then mock this factory.
Second, use a mocking framework like Powermock
which can intercept and mock constructor calls.