        } catch (Exception ex) {
            throw new RuntimeException(ex);
        }
    }

    @Override
    public void test(Integer port, final RpcAction action) {
        port = getPort(port);
        try {
            RpcConfig.getInstance().setTestMode(true);
            Tomcat tomcat = createTomcat(port);
            final String id = action.getClass().getName();
            final String url;
            if (action instanceof HttpAction) {
                url = "http://localhost:" + port + "/rpc/repo/?hash=http-services/" + id;
