@Test
void addMethods() {

    MethodConfig method = new MethodConfig();
    ServiceBuilder builder = new ServiceBuilder();
    builder.addMethods(Collections.singletonList(method));
    Assertions.assertTrue(builder.build().getMethods().contains(method));
    Assertions.assertEquals(1, builder.build().getMethods().size());
}