### Question:
AuthIdentity { public String getPassword() { return password; } 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 testGetPassword() throws Exception { assertEquals("pw", new AuthIdentity("joe", "pw").getPassword()); }