@Test public void testSuppressStaticInitializer() throws Exception { final String message = "myMessage"; ExampleWithEvilStaticInitializer tested = new ExampleWithEvilStaticInitializer(message); assertEquals(message, tested.getMessage()); }
public String getMessage() { return message; }
ExampleWithEvilStaticInitializer { public String getMessage() { return message; } }
ExampleWithEvilStaticInitializer { public String getMessage() { return message; } ExampleWithEvilStaticInitializer(String message); }
ExampleWithEvilStaticInitializer { public String getMessage() { return message; } ExampleWithEvilStaticInitializer(String message); String getMessage(); }
ExampleWithEvilStaticInitializer { public String getMessage() { return message; } ExampleWithEvilStaticInitializer(String message); String getMessage();  }