FederatedUserApprovalHandler implements UserApprovalHandler { @Override public AuthorizationRequest checkForPreApproval(AuthorizationRequest authorizationRequest, Authentication userAuthentication) { return authorizationRequest; }  @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 testCheckForPreApproval() throws Exception { assertEquals(request, subject.checkForPreApproval(request, authentication)); }