DefaultGreeter implements Greeter { public String greet(final String name) { return "Hello " + name; }  String greet(final String name);  }
@Test public void testGreet() { final Greeter greeter = new DefaultGreeter(); Assert.assertEquals("Hello foo", greeter.greet("foo")); Assert.assertEquals("Hello bar", greeter.greet("bar")); }