### Question:
TargetPeerRange { public int getPeersToAdd(final int currentPeerCount) { return currentPeerCount < addPeersWhenLessThan ? dropPeersWhenGreaterThan - currentPeerCount : 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 shouldNotAddPeersWhenPeerCountIsEqualToRangeBottom() { assertThat(new TargetPeerRange(5, 10, 0).getPeersToAdd(5)).isZero(); }
@Test public void shouldNotAddPeersWhenPeerCountIsWithinRange() { assertThat(new TargetPeerRange(5, 10, 0).getPeersToAdd(6)).isZero(); }
@Test public void shouldNotAddPeersWhenPeerCountIsAboveRange() { assertThat(new TargetPeerRange(5, 10, 0).getPeersToAdd(26)).isZero(); }
@Test public void shouldAddEnoughPeersToReachUpperBoundWhenPeerCountIsBelowRange() { assertThat(new TargetPeerRange(5, 10, 0).getPeersToAdd(4)).isEqualTo(6); }