public ThreadFactoryBuilder customizeFactory(ThreadFactory factory) {
        checkNullParameter(factory, "factory cannot be null.");
        this.customizeFactory = factory;
        return this;
    }
@Test
    void customizeFactoryTest() {
        String threadName = "hello is me!";
        ThreadFactory myFactory = r -> {
            Thread thread = new Thread();
            thread.setName(threadName);
            return thread;
        };
        ThreadFactory factory = new ThreadFactoryBuilder().daemon(true).priority(priority).customizeFactory(myFactory).build();
        Thread thread = factory.newThread(() -> {
        });
        assertEquals(threadName, thread.getName());
    }