@Test
public void testIfEnabledShouldNotRerouteNonLocalhostRequest() throws ApplicationException {

    //GIVEN
    underTest.setEnabled(true);
    given(localhostRequestChecker.checkIfRequestTargetsLocalhost(Mockito.any(WilmaHttpRequest.class))).willReturn(false);
    //WHEN
    underTest.process(request);
    //THEN
    verify(localhostRequestRouter, never()).reroute(request);
    verify(request, never()).setRerouted(true);
}