### Question:
NetUtils { public static byte[] getRawAddress(final String ipv4Address) { final Matcher m = IPV4_ADDRESS.matcher(ipv4Address); if (!m.find()) { return null; } final byte[] addr = new byte[4]; for (int i = 0; i < 4; i++) { final int intVal = Integer.parseInt(m.group(i+1)) & 0x00ff; addr[i] = (byte) intVal; } return addr; }  @Nonnull static String determineHostName(); @Nonnull static String determineHostName(@Nonnull final String defaultValue); @Nullable static String determineIpAddress(); static byte[] getRawAddress(final String ipv4Address);  }### Answer:
@Test public void testGetRawAddress() { assertArrayEquals(make(1,1,1,1), NetUtils.getRawAddress("1.1.1.1")); assertArrayEquals(make(192,168,0,1), NetUtils.getRawAddress("192.168.0.1")); assertArrayEquals(make(128,127,254,255), NetUtils.getRawAddress("128.127.254.255")); }