public void setUp () {
JavaRuntime runtime = getJavaRuntime();
Iterator threads = runtime.getThreads().iterator();
JavaThread contrivedThread = null;
while (threads.hasNext()) {
Object next = threads.next();
if (next instanceof JavaThread) {
JavaThread thread = (JavaThread) next;
try {
//System.out.println("Thread: " + thread.getName());
if (SetupJavaStackFrame_getHeapRoots.threadName.equals( thread.getName())) {
// System.out.println("Thread " + thread.getName() + " found!");
contrivedThread = thread;
break;
}
} catch (CorruptDataException e) {