@Test
public void testIsPeerInUse() throws Exception
{

    assertTrue( environmentManager.isPeerInUse( TestHelper.PEER_ID ) );
    doReturn( Sets.newHashSet() ).when( environment ).getEnvironmentPeers();
    assertTrue( environmentManager.isPeerInUse( TestHelper.PEER_ID ) );
    doReturn( EnvironmentStatus.UNDER_MODIFICATION ).when( environment ).getStatus();
    assertTrue( environmentManager.isPeerInUse( TestHelper.PEER_ID ) );
}