public class MockGetProductTypeByNameCliAction extends GetProductTypeByNameCliAction {
@Override
public XmlRpcFileManagerClient getClient() throws MalformedURLException,
ConnectionException {
return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
false) {
@Override
public ProductType getProductTypeByName(String name) {
ProductType pt = new ProductType();
pt.setProductTypeId(PRODUCT_TYPE_ID);