@Test
void getEnum() throws Exception {

    when(request.pathParam("id")).thenReturn("1");
    when(request.pathParam("enum")).thenReturn("A1");
    var builder = new WebServiceControllerBuilder<>(TestWebService.class, serviceImpl, TestWebService.class.getDeclaredMethod("getEnum", Long.class, TestWebService.TestEnum.class));
    Controller controller = builder.build();
    String sourceCode = builder.builder.sourceCode();
    assertThat(sourceCode).isEqualTo(ClasspathResources.text("webservice-test/test-webservice-controller-getEnum.java"));
    Response response = controller.execute(request);
    assertThat(response.status()).isEqualTo(HTTPStatus.OK);
    var bean = (TestWebService.TestResponse) ((BeanBody) ((ResponseImpl) response).body).bean;
    assertThat(bean).isNotNull();
}