Buggy code:
public class ThreadsSubsystemTestCase { static final DescriptionProvider NULL_PROVIDER = new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( final Locale locale ) { } } ; static ModelNode profileAddress = new ModelNode ( ) ; private static final DescriptionProvider profileDescriptionProvider = new DescriptionProvider ( ) { @ Override public ModelNode getModelDescription ( Locale locale ) { } } ; private ModelNode model ; private ServiceContainer container ; private ModelController controller ; @ Before public void setupController ( ) throws InterruptedException { } @ After public void shutdownServiceContainer ( ) { } @ Test public void testGetModelDescription ( ) throws Exception { ModelNode operation = createOperation ( READ_RESOURCE_DESCRIPTION_OPERATION , "profile" , "test" ) ; operation . get ( RECURSIVE ) . set ( true ) ; operation . get ( OPERATIONS ) . set ( true ) ; ModelNode result = executeForResult ( operation ) ; ModelNode threadsDescription = result . get ( CHILDREN , SUBSYSTEM , MODEL_DESCRIPTION , CommonAttributes . THREADS ) ; Assert . assertTrue ( threadsDescription . isDefined ( ) ) ; ModelNode threadFactoryDescription = threadsDescription . get ( CHILDREN , CommonAttributes . THREAD_FACTORY , MODEL_DESCRIPTION , "*" ) ; Assert . assertEquals ( STRING , threadFactoryDescription . require ( ATTRIBUTES ) . require ( NAME ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( STRING , threadFactoryDescription . require ( ATTRIBUTES ) . require ( CommonAttributes . GROUP_NAME ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( STRING , threadFactoryDescription . require ( ATTRIBUTES ) . require ( CommonAttributes . THREAD_NAME_PATTERN ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( INT , threadFactoryDescription . require ( ATTRIBUTES ) . require ( CommonAttributes . PRIORITY ) . require ( TYPE ) . asType ( ) ) ; <START_BUG> Assert . assertEquals ( OBJECT , threadFactoryDescription . require ( ATTRIBUTES ) . require ( CommonAttributes . PROPERTIES ) . require ( TYPE ) . asType ( ) ) ; <END_BUG> ModelNode boundedQueueThreadPoolDesc = threadsDescription . get ( CHILDREN , CommonAttributes . BOUNDED_QUEUE_THREAD_POOL , MODEL_DESCRIPTION , "*" ) ; Assert . assertEquals ( STRING , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( NAME ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( STRING , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . THREAD_FACTORY ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( OBJECT , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . PROPERTIES ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( OBJECT , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . MAX_THREADS ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( BIG_DECIMAL , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . MAX_THREADS ) . require ( VALUE_TYPE ) . require ( CommonAttributes . COUNT ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( BIG_DECIMAL , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . MAX_THREADS ) . require ( VALUE_TYPE ) . require ( CommonAttributes . PER_CPU ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( OBJECT , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . CORE_THREADS ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( BIG_DECIMAL , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . CORE_THREADS ) . require ( VALUE_TYPE ) . require ( CommonAttributes . COUNT ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( BIG_DECIMAL , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . CORE_THREADS ) . require ( VALUE_TYPE ) . require ( CommonAttributes . PER_CPU ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( OBJECT , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . QUEUE_LENGTH ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( BIG_DECIMAL , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . QUEUE_LENGTH ) . require ( VALUE_TYPE ) . require ( CommonAttributes . COUNT ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( BIG_DECIMAL , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . QUEUE_LENGTH ) . require ( VALUE_TYPE ) . require ( CommonAttributes . PER_CPU ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( OBJECT , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . KEEPALIVE_TIME ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( LONG , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . KEEPALIVE_TIME ) . require ( VALUE_TYPE ) . require ( CommonAttributes . TIME ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( STRING , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . KEEPALIVE_TIME ) . require ( VALUE_TYPE ) . require ( CommonAttributes . UNIT ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( BOOLEAN , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . BLOCKING ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( BOOLEAN , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . ALLOW_CORE_TIMEOUT ) . require ( TYPE ) . asType ( ) ) ; Assert . assertEquals ( STRING , boundedQueueThreadPoolDesc . require ( ATTRIBUTES ) . require ( CommonAttributes . HANDOFF_EXECUTOR ) . require ( TYPE ) . asType ( ) ) ;

Fix:
Assert . assertEquals ( LIST , threadFactoryDescription . require ( ATTRIBUTES ) . require ( CommonAttributes . PROPERTIES ) . require ( TYPE ) . asType ( ) ) ;