public static ThreadFactory minPriority(ThreadFactory factory) {
        return new ThreadFactoryBuilder()
                .setThreadFactory(factory)
                .setPriority(Thread.MIN_PRIORITY)
                .build();
    }
@Test
    public void minPriority() {
        ThreadFactory f = Tools.minPriority(Tools.namedThreads("foo-%d"));
        Thread t = f.newThread(() -> TestTools.print("yo"));
        assertThat(t.getPriority(), is(equalTo(Thread.MIN_PRIORITY)));
    }