public String delayedServiceResponse() {
    try {
      return this.delayedService.attemptRequest();
    } catch (RemoteServiceException e) {
      return e.getMessage();
    }
  }
@Test
  void testDelayedRemoteResponseSuccess() {
    var delayedService = new DelayedRemoteService(System.nanoTime()-2*1000*1000*1000, 2);
    var delayedServiceCircuitBreaker = new DefaultCircuitBreaker(delayedService, 3000,
        1,
        2 * 1000 * 1000 * 1000);

    var monitoringService = new MonitoringService(delayedServiceCircuitBreaker,null);
    //Set time in past to make the server work
    var response = monitoringService.delayedServiceResponse();
    assertEquals(response, "Delayed service is working");
  }