PeerRoutingInformationBaseManager implements ExtensionRoutingBaseManager { public void destroyPeerRoutingInformationBase(String peerName) { PeerRoutingInformationBase prib = null; synchronized (peerRibs) { prib = peerRibs.remove(peerName); } if(prib != null) peerRibDestroyed.fire(new PeerRoutingInformationBaseDestroyed(prib.getPeerName())); }  PeerRoutingInformationBase peerRoutingInformationBase(String peerName); @Override PeerRoutingInformationBase extensionRoutingInformationBase(String extensionName, String key); void destroyPeerRoutingInformationBase(String peerName); void vistPeerRoutingBases(PeerRoutingInformationBaseVisitor visitor); void resetManager(); boolean isPeerRoutingInformationBaseAvailable(String peerName);  }
@Test public void testDestroyNonExisting() { Assert.assertEquals(0, createCatcher.pribSize()); Assert.assertEquals(0, createCatcher.getPRIBCreatedCount("foo")); Assert.assertEquals(0, destroyCatcher.pribSize()); Assert.assertEquals(0, destroyCatcher.getPRIBCreatedCount("foo")); manager.destroyPeerRoutingInformationBase("foo"); Assert.assertEquals(0, createCatcher.pribSize()); Assert.assertEquals(0, createCatcher.getPRIBCreatedCount("foo")); Assert.assertEquals(0, destroyCatcher.pribSize()); Assert.assertEquals(0, destroyCatcher.getPRIBCreatedCount("foo")); }