OperationsMetadataType om = caps.getOperationsMetadata();
assertNotNull(om);
// assertEquals(6, om.getOperation().size());
OperationType getCapsOp = (OperationType) om.getOperation().get(0);
assertEquals("GetCapabilities", getCapsOp.getName());
assertEquals(2, getCapsOp.getDCP().size());
DCPType dcp1 = (DCPType) getCapsOp.getDCP().get(0);
DCPType dcp2 = (DCPType) getCapsOp.getDCP().get(1);
assertEquals(1, dcp1.getHTTP().getGet().size());
assertEquals(1, dcp2.getHTTP().getPost().size());
assertEquals("http://localhost:8080/geoserver/wfs?request=GetCapabilities",
((RequestMethodType) dcp1.getHTTP().getGet().get(0)).getHref());