private void testExpectedProperties(Runnable task, String expectedName, String expectedDescription) throws Exception {
ManagedThreadFactory threadFactory = getManagedThreadFactory();
ManagedThread thread =
(ManagedThread)threadFactory.newThread(task);
assertNull(thread.getTaskIdentityDescription());
assertNull(thread.getTaskIdentityDescription(Locale.getDefault().toString()));
assertNull(thread.getTaskIdentityName());
assertEquals(0, thread.getTaskRunTime());