@Test
void build() {

    ProviderBuilder builder = new ProviderBuilder();
    builder.host("host").port(8080).contextPath("contextpath").threadPool("mockthreadpool")
            .threads(2).ioThreads(3).queues(4).accepts(5).codec("mockcodec")
            .charset("utf-8").payload(6).buffer(1024).transporter("mocktransporter").exchanger("mockexchanger")
            .dispatcher("mockdispatcher").networker("networker").server("server").client("client")
            .telnet("mocktelnethandler").prompt("prompt").status("mockstatuschecker").wait(Integer.valueOf(1000))
            .isDefault(true).id("id").prefix("prefix");
    ProviderConfig config = builder.build();
    ProviderConfig config2 = builder.build();
    Assertions.assertEquals(8080, config.getPort());
    Assertions.assertEquals(2, config.getThreads());
    Assertions.assertEquals(3, config.getIothreads());
    Assertions.assertEquals(4, config.getQueues());
    Assertions.assertEquals(5, config.getAccepts());
    Assertions.assertEquals(6, config.getPayload());
    Assertions.assertEquals(1024, config.getBuffer());
    Assertions.assertEquals(1000, config.getWait());
    Assertions.assertEquals("host", config.getHost());
    Assertions.assertEquals("contextpath", config.getContextpath());
    Assertions.assertEquals("mockthreadpool", config.getThreadpool());
    Assertions.assertEquals("mockcodec", config.getCodec());
    Assertions.assertEquals("utf-8", config.getCharset());
    Assertions.assertEquals("mocktransporter", config.getTransporter());
    Assertions.assertEquals("mockexchanger", config.getExchanger());
    Assertions.assertEquals("mockdispatcher", config.getDispatcher());
    Assertions.assertEquals("networker", config.getNetworker());
    Assertions.assertEquals("server", config.getServer());
    Assertions.assertEquals("client", config.getClient());
    Assertions.assertEquals("mocktelnethandler", config.getTelnet());
    Assertions.assertEquals("prompt", config.getPrompt());
    Assertions.assertEquals("mockstatuschecker", config.getStatus());
    Assertions.assertTrue(config.isDefault());
    Assertions.assertEquals("id", config.getId());
    Assertions.assertEquals("prefix", config.getPrefix());
    Assertions.assertNotSame(config, config2);
}