@Test
public void authenticate_WithDetailsNotInstanceOfProxyCallbackAndServiceAuthenticationDetails_DoNothing() {

    TicketValidator ticketValidator = mock(TicketValidator.class);
    DynamicProxyCallbackUrlCasAuthenticationProvider authenticationProvider =
            new DynamicProxyCallbackUrlCasAuthenticationProvider();
    authenticationProvider.setTicketValidator(ticketValidator);
    when(authentication.getDetails()).thenReturn((ServiceAuthenticationDetails) () -> "http://localhost");
    authenticationProvider.authenticate(authentication);
    verify(authentication, times(1)).getDetails();
    verifyZeroInteractions(ticketValidator);
}