@Test
public void testGetMessageWithArgument() throws Exception {
ExpectNewDemo tested = new ExpectNewDemo();
MyClass myClassMock = mock(MyClass.class);
whenNew(MyClass.class).withNoArguments().thenReturn(myClassMock);
String expected = "Hello altered World";
when(myClassMock.getMessage("test")).thenReturn("Hello altered World");
String actual = tested.getMessageWithArgument();
verify(myClassMock).getMessage("test");
verifyNew(MyClass.class).withNoArguments();