  @Test
  public void itDoesntCount403AsFailure() throws InterruptedException {

    AmazonS3 s3 = FailsafeS3Decorator.decorate(new NotAuthedS3Client());

    for (int i = 0; i < 100; i++ ) {
      try {
        s3.getObjectMetadata("test-bucket", "test-key");
      } catch (AmazonServiceException e) {
        assertThat(e.getStatusCode()).isEqualTo(403);
      }

      Thread.sleep(50);
    }
  }