@Test
public void noRetryForInvalidParameter() {

    final Supplier<String> request = setupMockRequest(400, "InvalidParameter");
    final BmcGenericRetrier retrier = new BmcGenericRetrier(CUSTOM_RETRY_CONFIGURATION);
    try {
        retrier.execute(request, Supplier::get);
        fail("Should have thrown");
    } catch (BmcException e) {
        assertEquals(400, e.getStatusCode());
    }
    verify(request, times(1)).get();
}