protected void retireApi() {
        Api api = new Api();
        api.setOrganizationId(orgId);
        api.setApiId(apiId);
        api.setVersion(String.valueOf(version));
        getEngine().getRegistry().retireApi(api, new IAsyncResultHandler<Void>() {
            @Override
            public void handle(IAsyncResult<Void> result) {
                // This is a good faith effort - we don't really care if it can't be retired.
            }
        });
    }
Retires the API, removing it from the engine.
test/policies/src/main/java/io/apiman/test/policies/PolicyTester.java