SimpleType.LONG, SimpleType.STRING, SimpleType.LONG,
SimpleType.STRING, new ArrayType(1, stackTraceElementType),
SimpleType.STRING };
CompositeType compositeType = new CompositeType(ThreadInfo.class
.getName(), ThreadInfo.class.getName(), names, names, types);
CompositeData data = new CompositeDataSupport(compositeType, names,
values);
ThreadInfo threadInfo = ThreadInfo.from(data);
assertEquals(values[0], threadInfo.getThreadId());
assertEquals(values[1], threadInfo.getThreadName());
assertEquals(GOOD_THREAD_STATE, threadInfo.getThreadState());