@Test public void fieldOfTestObjectAsReturnedArgument() { testMock.returns(null).testMethod(myTestField); testMock.getMock().testMethod(myTestField); String result = detailedObservedInvocationsReport.createReport( getCurrentScenario().getObservedInvocations()); assertTrue(result.contains("myTestField")); }
protected Object performChainedAssertion(Mock<?> mock) { return mock.assertNotInvoked(); }