@Test
public void testGetCapabilities() throws ExceptionReport, OXFException {

    try {
        CSWAdapter adapter = new CSWAdapter();
        ParameterContainer paramCon = new ParameterContainer();
        paramCon.addParameterShell(CSWRequestBuilder.GET_CAPABILITIES_ACCEPT_VERSIONS_PARAMETER,
                                   CSWAdapter.SUPPORTED_VERSIONS.get(0));
        paramCon.addParameterShell(CSWRequestBuilder.GET_CAPABILITIES_SERVICE_PARAMETER,
                                   CSWAdapter.SERVICE_TYPE);
        paramCon.addParameterShell(CSWRequestBuilder.GET_CAPABILITIES_SECTIONS_PARAMETER, "ALL");
        paramCon.addParameterShell(CSWRequestBuilder.GET_CAPABILITIES_ACCEPT_FORMATS_PARAMETER,
                                   "application/xml");
        OperationResult opResult = adapter.doOperation(new Operation("GetCapabilities",
                                                                     url + "?",
                                                                     url), paramCon);
       LOGGER.info(new String(opResult.getIncomingResult()));
    } catch (Exception e) {
        LOGGER.error(e.getLocalizedMessage());
        fail();
    }
}