assertEquals("Expected and actual did not match", expected, actual);
}
@Test
public void assertSpyingOnFinalInstanceMethodWorks() throws Exception {
FinalDemo tested = new FinalDemo();
FinalDemo spy = spy(tested);
final String argument = "PowerMock";
final String expected = "something";
assertEquals("Hello " + argument, spy.say(argument));
when(spy.say(argument)).thenReturn(expected);
assertEquals(expected, spy.say(argument));
}