@PrepareForTest( { MyClass.class, StupidNew.class })
public class StupidNewTest {
@Test
public void testGetMessage() throws Exception {
StupidNew tested = new StupidNew();
MyClass myClassMock = createMockAndExpectNew(MyClass.class);
String expected = "Hello altered World";
expect(myClassMock.getMessage()).andReturn("Hello altered World");
replay(myClassMock, MyClass.class);
String actual = tested.getMessage();
verify(myClassMock, MyClass.class);
assertEquals("Expected and actual did not match", expected, actual);
}