The code is posted at link
now when i am trying to write the junit for first case i am getting the error
"need to replay the class B ".
but same junit is working for the second case.
my junit is
@RunWith(PowerMockRunner.class)
public class TestClass {
@Test
public void testDoSomeThing() {
B b = createMock(B.class)
expectNew(b.CallMe()).andReturns(xxx)
A a=new A();
replayAll();
a.doSomething();
verifyAll();
}
}