@Test public void testSuppressConstructorOfEvilParent() throws Exception { suppress(constructor(EvilParent.class)); final String message = "myMessage"; ExampleWithEvilParent tested = new ExampleWithEvilParent(message); assertEquals(message, tested.getMessage()); }
public String getMessage() { return message; }
ExampleWithEvilParent extends EvilParent { public String getMessage() { return message; } }
ExampleWithEvilParent extends EvilParent { public String getMessage() { return message; } ExampleWithEvilParent(String message); }
ExampleWithEvilParent extends EvilParent { public String getMessage() { return message; } ExampleWithEvilParent(String message); String getMessage(); }
ExampleWithEvilParent extends EvilParent { public String getMessage() { return message; } ExampleWithEvilParent(String message); String getMessage();  }