@Test public void shouldSetBasicInformation() throws Exception { User user = make(a(defaultUser)); User expectedUser = new User(user.getId(), user.getUserName()); User userReturned = user.basicInformation(); assertThat(userReturned, is(expectedUser)); }
public User basicInformation() { return new User(id, userName); }
User extends BaseModel implements Importable { public User basicInformation() { return new User(id, userName); } }
User extends BaseModel implements Importable { public User basicInformation() { return new User(id, userName); } User(Long id, String userName);  User(String userName); }
User extends BaseModel implements Importable { public User basicInformation() { return new User(id, userName); } User(Long id, String userName);  User(String userName); Boolean isMobileUser(); void validate(); void setPassword(String password); User basicInformation(); }
User extends BaseModel implements Importable { public User basicInformation() { return new User(id, userName); } User(Long id, String userName);  User(String userName); Boolean isMobileUser(); void validate(); void setPassword(String password); User basicInformation();  }