boolean correct = true;
int numberOfControls = 1000;
Current current = OTS.get_current();
String[] transactionNames = new String[numberOfControls];
Control[] controls = new Control[numberOfControls];
for (int index = 0; index < numberOfControls; index++)
{
current.begin();
transactionNames[index] = current.get_transaction_name();
controls[index] = current.suspend();
}
for (int index = 0; index < numberOfControls; index++)
{
current.resume(controls[index]);
correct = correct && transactionNames[index].equals(current.get_transaction_name());
current.commit(true);
}
if (correct)
{
System.out.println("Passed");