@Test( expected = PeerException.class )
public void testStopContainer() throws Exception
{

    localPeer.stopContainer( containerHost.getContainerId() );
    verify( resourceHost ).stopContainerHost( containerHost );
    RuntimeException cause = mock( RuntimeException.class );
    doThrow( cause ).when( resourceHost ).stopContainerHost( containerHost );
    localPeer.stopContainer( containerHost.getContainerId() );
}