public void addMethod(MethodDescriptor methodDescriptor) {
        methods.put(methodDescriptor.getMethodName(), Collections.singletonList(methodDescriptor));
    }
@Test
    void addMethod() {
        ReflectionServiceDescriptor service2 = new ReflectionServiceDescriptor(DemoService.class);
        MethodDescriptor method = Mockito.mock(MethodDescriptor.class);
        when(method.getMethodName()).thenReturn("sayHello2");
        service2.addMethod(method);
        Assertions.assertEquals(1, service2.getMethods("sayHello2").size());
    }