FederatedUserApprovalHandler implements UserApprovalHandler { @Override public boolean isApproved(AuthorizationRequest authorizationRequest, Authentication userAuthentication) { return true; }  @Override boolean isApproved(AuthorizationRequest authorizationRequest, Authentication userAuthentication); @Override AuthorizationRequest checkForPreApproval(AuthorizationRequest authorizationRequest, Authentication userAuthentication); @Override AuthorizationRequest updateAfterApproval(AuthorizationRequest authorizationRequest, Authentication userAuthentication); @Override @SuppressWarnings("unchecked") Map<String, Object> getUserApprovalRequest(AuthorizationRequest authorizationRequest, Authentication userAuthentication);  }
@Test public void testIsApproved() throws Exception { assertTrue(subject.isApproved(request, authentication)); }