@Test
public void defaultRetrierFailure() {

    final Supplier<String> request = setupMockRequest(500, "InternalServerError");
    final BmcGenericRetrier defaultRetrier =
            new BmcGenericRetrier(RetryConfiguration.NO_RETRY_CONFIGURATION);
    try {
        defaultRetrier.execute(request, Supplier::get);
        fail("Should have thrown");
    } catch (BmcException e) {
        assertEquals(500, e.getStatusCode());
    }
    verify(request, times(1)).get();
}