public String delayedServiceResponse() {
    try {
      return this.delayedService.attemptRequest();
    } catch (RemoteServiceException e) {
      return e.getMessage();
    }
  }
@Test
  void testDelayedRemoteResponseFailure() {
    var delayedService = new DelayedRemoteService(System.nanoTime(), 2);
    var delayedServiceCircuitBreaker = new DefaultCircuitBreaker(delayedService, 3000,
        1,
        2 * 1000 * 1000 * 1000);
    var monitoringService = new MonitoringService(delayedServiceCircuitBreaker,null);
    //Set time as current time as initially server fails
    var response = monitoringService.delayedServiceResponse();
    assertEquals(response, "Delayed service is down");
  }