    @Test
    public void onTooManyRedirects() {

        final Message cancelMsg = Mockito.mock(Message.class);
        final Message continueMsg = Mockito.mock(Message.class);

        logger.setLoggingEnabled(false);
        logger.onTooManyRedirects(webView, cancelMsg, continueMsg);
        verifyLogNotCalled();

        logger.setLoggingEnabled(true);
        logger.onTooManyRedirects(webView, cancelMsg, continueMsg);
        verifyLogEngine().logError(Mockito.anyString());
    }