### Question:
AuthIdentity { public String getUser() { return user; } protected  AuthIdentity();  AuthIdentity(String userName, String password); String getUser(); void setUser(String userName); String getPassword(); void setPassword(String password); String getOrigin(); void setOrigin(String origin); @Override String toString();  }### Answer:
@Test public void testGetUser() throws Exception { assertEquals("joe", new AuthIdentity("joe", "pw").getUser()); }