@Test
public void testDestroy() throws Exception
{

    environmentContainer.destroy( false );
    verify( peer ).destroyContainer( any( ContainerId.class ) );
    verify( environment ).removeEnvironmentPeer( PEER_ID );
    verify( environmentManager ).notifyOnContainerDestroyed( any( Environment.class ), eq( CONTAINER_ID ) );
}