@Test public void testHashCode() throws Exception { assertEquals(Objects.hash(username, password), credentials.hashCode()); }
@Override public int hashCode() { return Objects.hash(username, password); }
Credentials { @Override public int hashCode() { return Objects.hash(username, password); } }
Credentials { @Override public int hashCode() { return Objects.hash(username, password); } Credentials(String username, String password); protected  Credentials(); }
Credentials { @Override public int hashCode() { return Objects.hash(username, password); } Credentials(String username, String password); protected  Credentials(); String getUsername(); String getPassword(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
Credentials { @Override public int hashCode() { return Objects.hash(username, password); } Credentials(String username, String password); protected  Credentials(); String getUsername(); String getPassword(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }