I have a scenario where there is a public outer class and a private inner class. now i want to create an object of this private inner class for unit testing the methods in it.
public class MyOuterClass {
public MyOuterClass() { }
private class MyInnerClass {
public MyInnerClass() { }
}
}
This is the scenario where I am trying to create an object of "MyInnerClass" from some other test class. I found solution for creating object of class with private constructor but that is not what i required. please help me with this. thanks in advance.