assertEquals("WFS", sa.getServiceType().getValue());
assertEquals("1.1.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( 1, getCapsOp.getDCP().size());
DCPType dcp = (DCPType) getCapsOp.getDCP().get(0);
assertEquals( 1, dcp.getHTTP().getGet().size() );
assertEquals( 1, dcp.getHTTP().getPost().size() );
assertEquals( "http://localhost:8080/geoserver/wfs", ((RequestMethodType) dcp.getHTTP().getGet().get(0)).getHref() );
assertEquals( "http://localhost:8080/geoserver/wfs", ((RequestMethodType) dcp.getHTTP().getPost().get(0)).getHref() );
assertEquals("DescribeFeatureType", ((OperationType) om.getOperation().get(1)).getName());
assertEquals(1, ((OperationType) om.getOperation().get(1)).getDCP().size());
assertEquals("GetFeature", ((OperationType) om.getOperation().get(2)).getName());
assertEquals(1, ((OperationType) om.getOperation().get(2)).getDCP().size());
assertEquals("LockFeature", ((OperationType) om.getOperation().get(3)).getName());
assertEquals(1, ((OperationType) om.getOperation().get(3)).getDCP().size());
assertEquals("GetFeatureWithLock", ((OperationType) om.getOperation().get(4)).getName());
assertEquals(1, ((OperationType) om.getOperation().get(4)).getDCP().size());
assertEquals("Transaction", ((OperationType) om.getOperation().get(5)).getName());
assertEquals(1, ((OperationType) om.getOperation().get(5)).getDCP().size());
}