### Question:
ConnectionStore { public double getAverageConnectionsPerPeriod(boolean success) { if (success) { return connectionMonitor.getAverageRate(); } else { return failureConnectionMonitor.getAverageRate(); } } @Inject  ConnectionStore(ConnectionMonitor successMonitor, ConnectionMonitor failureMonitor); void addConnection(boolean success); double getAverageConnectionsPerPeriod(boolean success); double getMinimumOperationsPerPeriod(boolean success); double getMaximumOperationsPerPeriod(boolean success); double getConnectionsCumulativeCount(boolean success);  }### Answer:
@Test public void shouldGetAverageRate() { boolean connectionSuccess = true; connectionStore.getAverageConnectionsPerPeriod(connectionSuccess); verify(successMonitor).getAverageRate(); }