@Test
void create() throws Exception {

    var requestBean = new TestWebService.TestRequest();
    requestBean.stringField = "value";
    when(request.pathParam("id")).thenReturn("1");
    when(request.bean(TestWebService.TestRequest.class)).thenReturn(requestBean);
    var builder = new WebServiceControllerBuilder<>(TestWebService.class, serviceImpl, TestWebService.class.getDeclaredMethod("create", Integer.class, TestWebService.TestRequest.class));
    Controller controller = builder.build();
    assertThat(builder.builder.sourceCode()).isEqualTo(ClasspathResources.text("webservice-test/test-webservice-controller-create.java"));
    Response response = controller.execute(request);
    assertThat(response.status()).isEqualTo(HTTPStatus.CREATED);
}