assert thread1.getName().startsWith("Test") : "Wrong thread name: " + thread1.getName();
assert thread1.getPriority() == Thread.MIN_PRIORITY : "Wrong priority: " + thread1.getPriority();
assert thread1.isDaemon() : "Thread should be a daemon.";
// Second thread should have a different name.
Thread thread2 = threadFactory.newThread(doNothing);
assert thread2.getName().startsWith("Test") : "Wrong thread name: " + thread2.getName();
assert !thread1.getName().equals(thread2.getName()) : "Thread names should be different.";
}