### Question:
ConnectionStore { public void addConnection(boolean success) { if (success) { connectionMonitor.add(); } else { failureConnectionMonitor.add(); } } @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 shouldAddOperation() { boolean connectionSuccess = true; connectionStore.addConnection(connectionSuccess); verify(successMonitor).add(); }