String[] theFinalStates1 = { null };
Exception[] theExceptions = { null };
TransactionRequiredException aTransactionRequiredException;
int loopCount = 1;
for (int i = 0; i < loopCount; i++) {
try {
aTransactionRequiredException = new TransactionRequiredException();
if (theExceptions[i] != null) {
fail();
}
assertEquals(i + " Final state mismatch",
aTransactionRequiredException.getMessage(),
theFinalStates1[i]);
} catch (Exception e) {
if (theExceptions[i] == null) {
fail(i + "Unexpected exception");