@Test public void should_generate_new_name() { Person person = createPersonWithName(); String newName = systemUnderTest.createNewName(person); then(newName).isNotEqualTo(person.getName()); }
public String createNewName(Person person) { return person.getName() + "_new"; }
NewIdentityCreator { public String createNewName(Person person) { return person.getName() + "_new"; } }
NewIdentityCreator { public String createNewName(Person person) { return person.getName() + "_new"; }  }
NewIdentityCreator { public String createNewName(Person person) { return person.getName() + "_new"; }  String createNewName(Person person); int createNewStreetNumber(Person person); List<Person> createNewSiblings(Person person); }
NewIdentityCreator { public String createNewName(Person person) { return person.getName() + "_new"; }  String createNewName(Person person); int createNewStreetNumber(Person person); List<Person> createNewSiblings(Person person);  }