### Question:
BasicAuthFilter extends ClientFilter { @Override public int hashCode() { return authentication != null ? authentication.hashCode() : 0; } BasicAuthFilter(final String username, final String password); @Override ClientResponse handle(final ClientRequest cr); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testEqualsAndHashCode() { BasicAuthFilter authFilter2 = new BasicAuthFilter("admin", "lamepass"); assertEquals(authFilter, authFilter2); assertEquals(authFilter.hashCode(), authFilter2.hashCode()); }