HelloWorld { public void sayHello() { System.out.print("Hello World"); }  void sayHello();  }
@Test public void testSayHello() { HelloWorld hw = new HelloWorld(); hw.sayHello(); Assert.assertEquals("Hello World", outStream.toString()); }