@Test public void testIsRouteReflector() { BgpProcess emptyProcess = new BgpProcess(); assertFalse("no rr clients", isRouteReflector(emptyProcess)); assertTrue("has active rr client", isRouteReflector(hasActiveNeighbor)); assertTrue("has passive rr client", isRouteReflector(hasPassiveNeighbor)); hasNeighborMix.setPassiveNeighbors( ImmutableSortedMap.of(p30a, passivePeerWithoutRRC, p30b, passivePeerWithRRC)); assertTrue("has mix of active and inactive rr client", isRouteReflector(hasNeighborMix)); hasAllInactive.setNeighbors(ImmutableSortedMap.of(p32a, activePeerWithoutRRC)); hasAllInactive.setPassiveNeighbors(ImmutableSortedMap.of(p30a, passivePeerWithoutRRC)); assertFalse("has multiple inactive rr clients", isRouteReflector(hasAllInactive));