Twofer { String twofer(String name) { if(name == null || name == "") { return "One for you, one for me."; } else { return "One for " + name + ", one for me."; } }    }
@Ignore("Remove to run test") @Test public void noNameGiven() { String input = null; String expected = "One for you, one for me."; assertEquals(expected, twofer.twofer(input)); }
@Ignore("Remove to run test") @Test public void aNameGiven() { String input = "Alice"; String expected = "One for Alice, one for me."; assertEquals(expected, twofer.twofer(input)); }
@Test public void anotherNameGiven() { String input = "Bob"; String expected = "One for Bob, one for me."; assertEquals(expected, twofer.twofer(input)); }