### Question:
BasicThreadFactory implements ThreadFactory { @Nonnull public Thread newThread (@Nonnull final Runnable aRunnable) { ValueEnforcer.notNull (aRunnable, "Runnable"); final Thread t = getWrappedFactory ().newThread (aRunnable); initializeThread (t); return t; } protected  BasicThreadFactory(@Nonnull final Builder aBuilder); static void setDefaultUncaughtExceptionHandler(@Nonnull final Thread.UncaughtExceptionHandler aHdl); @Nonnull static Thread.UncaughtExceptionHandler getDefaultUncaughtExceptionHandler(); @Nonnull final ThreadFactory getWrappedFactory(); @Nonnull final String getNamingPattern(); @Nonnull final ETriState getDaemon(); @Nullable final Integer getPriority(); final Thread.UncaughtExceptionHandler getUncaughtExceptionHandler(); @Nonnull long getThreadCount(); @Nonnull Thread newThread(@Nonnull final Runnable aRunnable); @Override String toString();  }### Answer:
@Test @SuppressFBWarnings (value = "DLS_DEAD_LOCAL_STORE") public void testAll () { final BasicThreadFactory x = new BasicThreadFactory.Builder ().setDaemon (false) .setPriority (Thread.NORM_PRIORITY) .setNamingPattern ("pool %d") .build (); for (int i = 0; i < 2; ++i) { final Thread t = x.newThread ( () -> { if (false) LOGGER.info ("In thread '" + Thread.currentThread ().getName () + "'"); }); assertNotNull (t); t.start (); } CommonsTestHelper.testToStringImplementation (x); }