### Question:
OperationMonitor { long getMaxRate() { return rateWindow.getMaxRate(); } OperationMonitor(); private  OperationMonitor(final RateTimer timer);   OperationMonitor(final RateTimer timer, final RateWindow rateWindow);   }### Answer:
@Test public void shouldGetMaxRate() { final long SOLUTION = 4L; given(rateWindow.getMaxRate()).willReturn(SOLUTION); long rate = operationMonitor.getMaxRate(); assertEquals(rate, SOLUTION); }