return new HttpCommand(processor.apply(Invocation.create(method, ImmutableList.<Object> of("1"))));
}
@Test
void testIncrementsFailureCount() throws InterruptedException, IOException, SecurityException, NoSuchMethodException {
HttpCommand command = createCommand();
HttpResponse response = HttpResponse.builder().statusCode(400).build();
handler.shouldRetryRequest(command, response);
assertEquals(command.getFailureCount(), 1);
handler.shouldRetryRequest(command, response);
assertEquals(command.getFailureCount(), 2);
handler.shouldRetryRequest(command, response);
assertEquals(command.getFailureCount(), 3);
}