public class MockGetFilePercentTransferredCliAction extends GetFilePercentTransferredCliAction {
@Override
public XmlRpcFileManagerClient getClient() throws MalformedURLException,
ConnectionException {
return new XmlRpcFileManagerClient(new URL("http://localhost:9000"),
false) {
@Override
public double getRefPctTransferred(Reference reference) {
referencePassedToClient = reference;
return PERCENT_TRANS;