@Test
public void testRetryAfterServiceUnavailableExceedingMaxRetries() {

    long startTime = System.currentTimeMillis();
    long serverTime = getServerTime();
    // Retry-After is 2s for the comeBackLater route and this time exceeds 7 tries * 2s
    new DXHTTPRequest().request("/system/comeBackLater",
            mapper.valueToTree(new ComeBackLaterRequest(serverTime + 20000)),
            RetryStrategy.SAFE_TO_RETRY);
    long timeElapsed = System.currentTimeMillis() - startTime;
    Assert.assertTrue(16000 <= timeElapsed);
    Assert.assertTrue(timeElapsed <= 30000);
}