@Test
public void testGenerateGetCapabilitiesURL() throws Exception {

    String url = "http://someogcserver.com/wms/service?request=GetMap";
    Endpoint instance = new Endpoint(url);
    URL expResult = new URL("http://someogcserver.com/wms/service?request=GetCapabilities&service=WMS");
    URL result = instance.generateGetCapabilitiesURL();
    assertThat(expResult, is(equalTo(result)));
}