@Test
public void shouldGive400OnMalformedJson() throws IOException {

    FakeServletRequest request = new FakeServletRequest("POST", contextRoot, "/api", "/postMethod");
    request.setRequestBody("This is not JSON!");
    expectedLogEvents.expect(ApiControllerAction.class, Level.WARN,
            "While processing ServletHttpExchange[POST " + contextRoot + "/api/postMethod] arguments for ApiControllerMethodAction{POST /postMethod => ExampleController.postAction(JsonObject)}");
    servlet.service(request, response);
    assertThat(response.getStatus()).isEqualTo(400);
    assertThat(response.getStatusMessage()).contains("org.jsonbuddy.parse.JsonParseException: Unexpected character 'T'");
}