@BeforeMethod public void init() { mockTester = new DefaultMockTester(); mock = mockTester.mock(MockedType.class, "mock"); proxy = (MockedType) mock.proxy(); mock.expects(exactly(2)).method("m").withNoArguments(); }
@AfterMethod public void verify() { mockTester.verify(); }