### Question:
TargetPeerRange { public int getPeersToDrop(final int currentPeerCount) { return currentPeerCount > dropPeersWhenGreaterThan ? currentPeerCount - dropPeersWhenGreaterThan : 0; } TargetPeerRange(
      final int addPeersWhenLessThan,
      final int dropPeersWhenGreaterThan,
      final int minimumRandomlySelectedPeerCount); int getPeersToAdd(final int currentPeerCount); int getPeersToDrop(final int currentPeerCount); int getRandomlySelectedPeersToAdd(final int currentRandomlySelectedPeerCount); int getRandomlySelectedPeersToDrop(
      final int currentRandomlySelectedPeerCount, final int currentTotalPeerCount);  }### Answer:
@Test public void shouldNotDropPeersWhenPeerCountIsEqualToTopOfRange() { assertThat(new TargetPeerRange(5, 10, 0).getPeersToDrop(10)).isZero(); }
@Test public void shouldNotDropPeersWhenPeerCountIsWithinRange() { assertThat(new TargetPeerRange(5, 10, 0).getPeersToDrop(8)).isZero(); }
@Test public void shouldDropPeersToReachUpperBoundWhenPeerCountIsAboveRange() { assertThat(new TargetPeerRange(5, 10, 0).getPeersToDrop(12)).isEqualTo(2); }