### Question:
ConnectionStore { public double getMinimumOperationsPerPeriod(boolean success) { if (success) { return connectionMonitor.getMinimumRate(); } else { return failureConnectionMonitor.getMinimumRate(); } } @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 shouldGetMinimumRate() { boolean connectionSuccess = true; connectionStore.getMinimumOperationsPerPeriod(connectionSuccess); verify(successMonitor).getMinimumRate(); }