@Test
public void shouldReportParameterConversionFailure() throws IOException {

    FakeServletRequest request = new FakeServletRequest("GET", contextRoot, "/api", "/goodbye");
    request.setParameter("amount", "one");
    expectedLogEvents.expectMatch(expect -> expect
            .level(Level.DEBUG).logger(ApiControllerAction.class)
            .pattern("While processing {} arguments to {}: {}")
    );
    servlet.service(request, response);
    assertThat(response.getStatus()).isEqualTo(400);
    assertThat(response.getStatusMessage()).isEqualTo("Could not convert amount=one to int");
}