ModelNode threadPool = subsystem.require("scheduled-thread-pool");
assertEquals(1, threadPool.keys().size());
assertEquals("test-pool", threadPool.require("test-pool").require("name").asString());
assertEquals(100, threadPool.require("test-pool").require(MAX_THREADS).asInt());
assertEquals(1000L, threadPool.require("test-pool").require(KEEPALIVE_TIME).get(TIME).asLong());
assertEquals("MILLISECONDS", threadPool.require("test-pool").require(KEEPALIVE_TIME).get(UNIT).asString());
}
@Test
public void testSeveralScheduledThreadPools() throws Exception {
List<ModelNode> updates = createSubSystem("<scheduled-thread-pool name=\"test-poolA\"><max-threads count=\"1\"/></scheduled-thread-pool>"