@Test
public void testGetParentByChild() throws Exception
{

    ResourceHostInfo existingHost = registry.getResourceHostByContainerHost( containerHostInfo );
    assertNotNull( existingHost );
    ContainerHostInfo containerHostInfo1 = mock( ContainerHostInfo.class );
    when( containerHostInfo1.getId() ).thenReturn( UUID.randomUUID().toString() );
    try
    {
        registry.getResourceHostByContainerHost( containerHostInfo1 );
        fail( "Expected HostDisconnectedException" );
    }
    catch ( HostDisconnectedException e )
    {
    }
}