@Test
public void shouldCallMethodWithArgumentsAndConvertReturn() throws IOException {

    String name = UUID.randomUUID().toString();
    FakeServletRequest request = new FakeServletRequest("GET", contextRoot, "/api", null);
    request.setParameter("name", name);
    servlet.service(request, response);
    assertThat(response.getStatus()).isEqualTo(200);
    assertThat(JsonObject.parse(new String(response.getBody())).requiredString("name")).isEqualTo(name);
    assertThat(response.getContentType()).isEqualTo("application/json");
}