FinalDemo tested = createMock(FinalDemo.class);
String expected = "Hello altered World";
expect(tested.say("hello")).andReturn("Hello altered World");
replay(tested);
String actual = tested.say("hello");
verify(tested);
AssertJUnit.assertEquals("Expected and actual did not match", expected, actual);
// Should still be mocked by now.