assertEquals("WFS", sa.getServiceType().getValue());
assertEquals("1.0.0", sa.getServiceTypeVersion());
}
void assertOperationsMetadata(WFSCapabilitiesType caps) {
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());
assertEquals("http://localhost:8080/geoserver/wfs", ((RequestMethodType) dcp2.getHTTP()
.getPost().get(0)).getHref());
assertEquals("DescribeFeatureType", ((OperationType) om.getOperation().get(1)).getName());
assertEquals(2, ((OperationType) om.getOperation().get(1)).getDCP().size());
assertEquals("GetFeature", ((OperationType) om.getOperation().get(2)).getName());
assertEquals(2, ((OperationType) om.getOperation().get(2)).getDCP().size());
assertEquals("Transaction", ((OperationType) om.getOperation().get(3)).getName());
assertEquals(2, ((OperationType) om.getOperation().get(3)).getDCP().size());
assertEquals("LockFeature", ((OperationType) om.getOperation().get(4)).getName());
assertEquals(2, ((OperationType) om.getOperation().get(4)).getDCP().size());
assertEquals("GetFeatureWithLock", ((OperationType) om.getOperation().get(5)).getName());
assertEquals(2, ((OperationType) om.getOperation().get(5)).getDCP().size());
}