Endpoint { public EndpointType getType() { return type; } Endpoint(String url); String getURL(); EndpointType getType(); String getComparisonString(); URL generateGetCapabilitiesURL(); boolean equals(Endpoint other); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetType() { EndpointType expResult = EndpointType.WPS; EndpointType result = testpoint.getType(); assertThat(expResult, is(equalTo(result))); }