@Test
public void testToHostAddressList()
throws Exception
{
Set<Host> hosts = ImmutableSet.<Host>of(
new TestHost(InetAddress.getByAddress(new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16})),
new TestHost(InetAddress.getByAddress(new byte[] {1, 2, 3, 4})));
HostAddressFactory hostAddressFactory = new HostAddressFactory();
List<HostAddress> list = hostAddressFactory.toHostAddressList(hosts);
assertEquals("[[102:304:506:708:90a:b0c:d0e:f10], 1.2.3.4]", list.toString());