protected static DigitalObject getTestSDep(String pid,
String label,
String sDefPID,
Set<ParamDomainMap> methodDefs,
Map<String, Set<String>> inputKeys,
Map<String, Set<String>> inputTypes,
Map<String, Set<String>> outputTypes) {
Date now = new Date();
URIReference[] models = {Models.SERVICE_DEPLOYMENT_3_0};
DigitalObject obj = ObjectBuilder.getTestObject(pid,
models,
"A",
"someOwnerId",
label,
now,
now);
String methodMapXML = getMethodMap(methodDefs, inputKeys, true);
addXDatastream(obj, "METHODMAP", methodMapXML);
String inputSpecXML = getInputSpec(sDefPID, inputTypes);
addXDatastream(obj, "DSINPUTSPEC", inputSpecXML);
String wsdlXML = getWSDL(methodDefs, inputKeys, outputTypes);
addXDatastream(obj, "WSDL", wsdlXML);
return obj;
}