### Question:
InternetProtocolUtils { public static boolean isLocalAddress(String address) { return LOCAL_ADDRESS_PATTERN.matcher(address).find(); } private  InternetProtocolUtils(); static boolean isLocalAddress(String address);  }### Answer:
@Test public void shouldCheckLocalAddress() { assertThat(InternetProtocolUtils.isLocalAddress("127.0.0.1"), equalTo(true)); assertThat(InternetProtocolUtils.isLocalAddress("10.0.0.1"), equalTo(true)); assertThat(InternetProtocolUtils.isLocalAddress("172.0.0.1"), equalTo(false)); assertThat(InternetProtocolUtils.isLocalAddress("172.16.0.1"), equalTo(true)); assertThat(InternetProtocolUtils.isLocalAddress("192.168.0.1"), equalTo(true)); assertThat(InternetProtocolUtils.isLocalAddress("94.32.34.5"), equalTo(false)); }