@Test(expected = AWSBadRequestException.class)
public void testNoRetryOfBadRequestNonIdempotent() throws Throwable {

  invoker.retry("test", null, false,
      () -> {
        throw serviceException(400, "bad request");
      });
}