public class VerifyNewWithoutWhenNewTest {
@Test
// TODO This should actually work in the future when issue 148 is resolved.
public void verifyingNewWithoutExpectationWhenNoArgumentsThrowsISE() throws Exception {
ExpectNewDemo tested = new ExpectNewDemo();
assertEquals("Hello world", tested.getMessage());
try {
verifyNew(MyClass.class).withNoArguments();
fail("IllegalStateException expected");
} catch (IllegalStateException e) {