@Test
public void testIsRequestFromAdminShouldReturnFalseWhenHostIsNotAdminAndSecurityIsEnabled() {

    //GIVEN
    given(httpServletRequest.getRemoteAddr()).willReturn("ip");
    given(ipAddressResolver.resolveToHostName("ip")).willReturn("host");
    given(wilmaAdminHostsDTO.isSecurityEnabled()).willReturn(true);
    given(allowedHosts.contains("host")).willReturn(false);
    //WHEN
    boolean result = underTest.isRequestFromAdmin(httpServletRequest);
    //THEN
    assertFalse(result);
}