@Test void shouldDefaultToScoreBasedPool() { assertThat(pools.getPool(new MockNodeId(1))).isEqualTo(PeerPool.SCORE_BASED); }
public PeerPool getPool(final NodeId nodeId) { return knownSources.getOrDefault(nodeId, DEFAULT_POOL); }
PeerPools { public PeerPool getPool(final NodeId nodeId) { return knownSources.getOrDefault(nodeId, DEFAULT_POOL); } }
PeerPools { public PeerPool getPool(final NodeId nodeId) { return knownSources.getOrDefault(nodeId, DEFAULT_POOL); }  }
PeerPools { public PeerPool getPool(final NodeId nodeId) { return knownSources.getOrDefault(nodeId, DEFAULT_POOL); }  void addPeerToPool(final NodeId nodeId, final PeerPool peerPool); void forgetPeer(final NodeId nodeId); PeerPool getPool(final NodeId nodeId); }
PeerPools { public PeerPool getPool(final NodeId nodeId) { return knownSources.getOrDefault(nodeId, DEFAULT_POOL); }  void addPeerToPool(final NodeId nodeId, final PeerPool peerPool); void forgetPeer(final NodeId nodeId); PeerPool getPool(final NodeId nodeId);  }