@Test
public void restrictorWithReverseDnsLookup() throws URISyntaxException, IOException, ParseException {

    Configuration config = getConfig(
            ConfigKey.RESTRICTOR_CLASS, TestReverseDnsLookupRestrictor.class.getName(),
            ConfigKey.ALLOW_DNS_REVERSE_LOOKUP, "true");
    InetSocketAddress address = new InetSocketAddress(8080);
    TestReverseDnsLookupRestrictor.expectedRemoteHostsToCheck = new String[] {
            address.getHostName(),
            address.getAddress().getHostAddress()
    };
    JSONObject resp = simpleMemoryGetReadRequest(config);
    assertFalse(resp.containsKey("error"));
}