@Test
void validateRequestBeanClass() throws NoSuchMethodException {

    var validator = new WebServiceInterfaceValidator(TestWebService.class, new BeanClassValidator());
    var method = TestWebService.class.getDeclaredMethod("get", Integer.class);
    assertThatThrownBy(() -> validator.validateRequestBeanClass(Integer.class, method))
            .isInstanceOf(Error.class).hasMessageContaining("if it is path param, please add @PathParam");
    assertThatThrownBy(() -> validator.validateRequestBeanClass(TestEnum.class, method))
            .isInstanceOf(Error.class).hasMessageContaining("if it is path param, please add @PathParam");
    assertThatThrownBy(() -> validator.validateRequestBeanClass(Map.class, method))
            .isInstanceOf(Error.class).hasMessageContaining("request bean type must be bean class");
}