@Test
public void testDefaultDeamonThreadFactory() throws Exception {

  final ThreadFactory deamons = ThreadFactories.deamons();
  assertThat(deamons, sameInstance(ThreadFactories.deamons()));
  assertThat(deamons.newThread(mock(Runnable.class)).getName(), equalTo("Thread-1-Daemon"));
  assertThat(deamons.newThread(mock(Runnable.class)).getName(), equalTo("Thread-2-Daemon"));
  assertThat(deamons.newThread(mock(Runnable.class)).getName(), equalTo("Thread-3-Daemon"));
  testDeamonThreadFactory(deamons);
}