@Test
void build() {

    MethodBuilder builder = new MethodBuilder();
    builder.id("id").prefix("prefix").timeout(1).retries(2).actives(3).loadbalance("mockloadbalance").async(true)
            .sent(false).mock("mock").merger("merger").cache("cache").validation("validation")
            .appendParameter("default.num", "one");
    MethodConfig config = builder.build();
    MethodConfig config2 = builder.build();
    Assertions.assertEquals("id", config.getId());
    Assertions.assertEquals("prefix", config.getPrefix());
    Assertions.assertEquals(1, config.getTimeout());
    Assertions.assertEquals(2, config.getRetries());
    Assertions.assertEquals(3, config.getActives());
    Assertions.assertEquals("mockloadbalance", config.getLoadbalance());
    Assertions.assertTrue(config.isAsync());
    Assertions.assertFalse(config.getSent());
    Assertions.assertEquals("mock", config.getMock());
    Assertions.assertEquals("merger", config.getMerger());
    Assertions.assertEquals("cache", config.getCache());
    Assertions.assertEquals("validation", config.getValidation());
    Assertions.assertTrue(config.getParameters().containsKey("default.num"));
    Assertions.assertEquals("one", config.getParameters().get("default.num"));
    Assertions.assertNotSame(config, config2);
}