static boolean isLocalhost(String hostname, String ipAddress) {
        try {
            return isLocalhostWithLoopbackIpAddress(hostname, ipAddress) || isLocalhostWithNonLoopbackIpAddress(ipAddress);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
@Test
    public void shouldReturnFalseIfAddressIsNotLocal() throws UnknownHostException {
        String hostName = "hostThatNeverExists";
        assertThat("Localhost (" + hostName + ") should not be a local address.", SystemUtil.isLocalhost("8.8.8.8"), is(false));
    }