WorkspaceRemoteSubscriptionPermissionFilter implements RemoteSubscriptionPermissionCheck { @Inject public void register(RemoteSubscriptionPermissionManager permissionFilter) { permissionFilter.registerCheck( this, WORKSPACE_STATUS_CHANGED_METHOD, MACHINE_STATUS_CHANGED_METHOD, SERVER_STATUS_CHANGED_METHOD, RUNTIME_LOG_METHOD, MACHINE_LOG_METHOD, INSTALLER_LOG_METHOD, INSTALLER_STATUS_CHANGED_METHOD, BOOTSTRAPPER_STATUS_CHANGED_METHOD); }  @Inject void register(RemoteSubscriptionPermissionManager permissionFilter); @Override void check(String methodName, Map<String, String> scope);  }
@Test public void shouldRegisterItself() { permissionFilter.register(permissionManager); verify(permissionManager) .registerCheck( permissionFilter, WORKSPACE_STATUS_CHANGED_METHOD, MACHINE_STATUS_CHANGED_METHOD, SERVER_STATUS_CHANGED_METHOD, RUNTIME_LOG_METHOD, MACHINE_LOG_METHOD, INSTALLER_LOG_METHOD, INSTALLER_STATUS_CHANGED_METHOD, BOOTSTRAPPER_STATUS_CHANGED_METHOD); }