@Test
public void testIPv6toURL() {

	try {
		final String addressString = "2001:01db8:00:0:00:ff00:42:8329";
		final String normalizedAddress = "[2001:1db8::ff00:42:8329]";
		InetAddress address = InetAddress.getByName(addressString);
		assertEquals(normalizedAddress, NetUtils.ipAddressToUrlString(address));
	}
	catch (Exception e) {
		e.printStackTrace();
		fail(e.getMessage());
	}
}