@Test void testApplyToRequest() { HttpRequest request = mock(HttpRequest.class); ByPassScheme scheme = new ByPassScheme(); AuthenticationCommand cmd = scheme.createCommand(null, null); cmd.applyToRequest(request); verify(request,never()).setHeaders(any()); }
@Override public AuthenticationCommand createCommand(Authentication authentication, Supplier<QueryResponse> token) { return AUTHENTICATION_COMMAND; }
ByPassScheme implements AbstractAuthenticationScheme { @Override public AuthenticationCommand createCommand(Authentication authentication, Supplier<QueryResponse> token) { return AUTHENTICATION_COMMAND; } }
ByPassScheme implements AbstractAuthenticationScheme { @Override public AuthenticationCommand createCommand(Authentication authentication, Supplier<QueryResponse> token) { return AUTHENTICATION_COMMAND; }  }
ByPassScheme implements AbstractAuthenticationScheme { @Override public AuthenticationCommand createCommand(Authentication authentication, Supplier<QueryResponse> token) { return AUTHENTICATION_COMMAND; }  @Override AuthenticationScheme getScheme(); @Override AuthenticationCommand createCommand(Authentication authentication, Supplier<QueryResponse> token); @Override boolean isDefault(); }
ByPassScheme implements AbstractAuthenticationScheme { @Override public AuthenticationCommand createCommand(Authentication authentication, Supplier<QueryResponse> token) { return AUTHENTICATION_COMMAND; }  @Override AuthenticationScheme getScheme(); @Override AuthenticationCommand createCommand(Authentication authentication, Supplier<QueryResponse> token); @Override boolean isDefault(); static final String AUTHENTICATION_SCHEME_BY_PASS_KEY; }