@Test
public void testWithWrappedThreadFactory() {

    String testThreadName = "i-am-test";
    ThreadFactory wrappedThreadFactory = new ThreadFactory() {
        @Override
        public Thread newThread(Runnable r) {
            Thread result = new Thread(r);
            result.setName(testThreadName);
            return result;
        }
    };
    ThreadFactory threadFactory = ThreadFactoryBuilder.create().withWrappedThreadFactory(wrappedThreadFactory)
            .build();
    Thread testThread = threadFactory.newThread(TEST_RUNNABLE);
    assertThat(testThread.getName(), is("OH-" + testThreadName));
}