### Question:
AddressEndpointKeyEquivalence extends Equivalence<AddressEndpointKey> { @Override protected int doHash(final AddressEndpointKey addressEndpointKey) { return Objects.hashCode( addressEndpointKey.getAddress(), addressEndpointKey.getAddressType(), addressEndpointKey.getContextId(), addressEndpointKey.getContextType()); }    }### Answer:
@Test public void testDoHash() throws Exception { Assert.assertEquals(addressEndpointKeyEquivalence.doHash(addressEndpointLocation), addressEndpointKeyEquivalence.doHash(rendererEndpoint)); }