@Test
void build() {

    ReferenceBuilder builder = new ReferenceBuilder();
    builder.check(true).init(false).generic(true).injvm(false).lazy(true).reconnect("reconnect").sticky(false)
            .version("version").group("group").id("id").prefix("prefix");
    ReferenceConfig config = builder.build();
    ReferenceConfig config2 = builder.build();
    Assertions.assertEquals("id", config.getId());
    Assertions.assertEquals("prefix", config.getPrefix());
    Assertions.assertTrue(config.isCheck());
    Assertions.assertFalse(config.isInit());
    Assertions.assertTrue(config.isGeneric());
    Assertions.assertFalse(config.isInjvm());
    Assertions.assertTrue(config.getLazy());
    Assertions.assertFalse(config.getSticky());
    Assertions.assertEquals("reconnect", config.getReconnect());
    Assertions.assertEquals("version", config.getVersion());
    Assertions.assertEquals("group", config.getGroup());
    Assertions.assertNotSame(config, config2);
}