@Test
public void testGetHostname1() {

	try {
		InetAddress address = mock(InetAddress.class);
		when(address.getCanonicalHostName()).thenReturn("worker10");
		when(address.getHostName()).thenReturn("worker10");
		when(address.getHostAddress()).thenReturn("127.0.0.1");
		InstanceConnectionInfo info = new InstanceConnectionInfo(address, 19871);
		Assert.assertEquals("worker10", info.getHostname());
	}
	catch (Exception e) {
		e.printStackTrace();
		fail(e.getMessage());
	}
}