@Test
void patch() 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("patch", Integer.class, TestWebService.TestRequest.class));
    Controller controller = builder.build();
    String sourceCode = builder.builder.sourceCode();
    assertThat(sourceCode).isEqualTo(ClasspathResources.text("webservice-test/test-webservice-controller-patch.java"));
    Response response = controller.execute(request);
    assertThat(response.status()).isEqualTo(HTTPStatus.NO_CONTENT);
}