Please help me how can I write test case for private void method which takes pojo class as an argument and set some class methods in side. I mean inside that method some setmethods are calling. This private method is called in constructor but i want to test or write test case for that private method.
Ex:
private void M1(Dto obj1) {
anotherclass.setSometMethod(someClass.getId());
}
Please let me know how we can do it using PowerMockito. I don't want to use Reflection.
Thanks in advance