@Test public void testHelloHipster() { MyBean bean = new MyBean(); final String result = bean.sayHello("Scott", true); Assert.assertEquals("Yo Scott", result); }
public String sayHello(String name, boolean hipster) { return (hipster) ? ("Yo " + name) : ("Hello " + name); }
MyBean { public String sayHello(String name, boolean hipster) { return (hipster) ? ("Yo " + name) : ("Hello " + name); } }
MyBean { public String sayHello(String name, boolean hipster) { return (hipster) ? ("Yo " + name) : ("Hello " + name); }  }
MyBean { public String sayHello(String name, boolean hipster) { return (hipster) ? ("Yo " + name) : ("Hello " + name); }  String sayHello(String name, boolean hipster); }
MyBean { public String sayHello(String name, boolean hipster) { return (hipster) ? ("Yo " + name) : ("Hello " + name); }  String sayHello(String name, boolean hipster);  }