public Date retryAfter() {
        return Optional.ofNullable(retryAfter).map(Date::new).orElse(null);
    }
@Test
    public void retryAfterTest() {
        Date date = retryableException.retryAfter();
        Assert.assertNotNull(date);
    }