getFeatureInfo.setInfoFormat("text/html");
getFeatureInfo.setQueryLayers( Collections.singleton(layer));
getFeatureInfo.setQueryPoint( 75, 100 );
URL url2 = getFeatureInfo.getFinalURL();
GetFeatureInfoResponse response = wms.issueRequest(getFeatureInfo);
assertEquals("text/html", response.getContentType() );
InputStream stream = response.getInputStream();
StringBuilderWriter writer = new StringBuilderWriter();
IOUtils.copy(stream, writer );
String info = writer.toString();
assertTrue( "response available", !info.isEmpty() );