@PrepareForTest(StrictDemo.class)
public class StrictDemoTest {
@Test
public void testCallB_notStrict() throws Exception {
StrictDemo tested = createPartialMock(StrictDemo.class, "A", "B");
expectPrivate(tested, "B").times(1);
expectPrivate(tested, "A").times(1);
replay(tested);
tested.callAThenB();
verify(tested);
}