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