cmdLineUtility
.run(("--url http://localhost:9000 --operation --addProductType"
+ " --typeName " + productTypeName + " --typeDesc "
+ productTypeDesc + " --repository " + productTypeRepo
+ " --versionClass " + productTypeVersioner).split(" "));
MethodCallDetails methodCallDetails = client.getLastMethodCallDetails();
assertEquals("addProductType", methodCallDetails.getMethodName());
assertEquals(1, methodCallDetails.getArgs().size());
ProductType pt = (ProductType) methodCallDetails.getArgs().get(0);
assertEquals(productTypeName, pt.getName());
assertEquals(productTypeDesc, pt.getDescription());
assertEquals(productTypeRepo, pt.getProductRepositoryPath());
assertEquals(productTypeVersioner, pt.getVersioner());
}