Buggy code:
public class TestMixedLockManagerRefreshException extends SequencedActionsTest { public void setUp ( ) { } public void testRefreshNoTxReqExceptions ( ) { } public void testRefreshTxReqExceptions ( ) { <START_BUG> Object [ ] [ ] threadMainTxReqTest = new Object [ ] [ ] { new Object [ ] { Act . CreateEm } , new Object [ ] { Act . Find } , new Object [ ] { Act . SaveVersion } , new Object [ ] { Act . TestEmployee , 1 , Default_FirstName } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . NONE } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . READ } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . WRITE } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . OPTIMISTIC } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . OPTIMISTIC_FORCE_INCREMENT } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . PESSIMISTIC_READ } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . PESSIMISTIC_WRITE } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . PESSIMISTIC_FORCE_INCREMENT } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } } ; <END_BUG> launchActionSequence ( "testLockTxReqExceptions()" , null , threadMainTxReqTest ) ; } public void testRefreshIllegalArgrumentExceptions ( ) { } }

Fix:
Object [ ] [ ] threadMainTxReqTest = new Object [ ] [ ] { new Object [ ] { Act . CreateEm } , new Object [ ] { Act . Find } , new Object [ ] { Act . SaveVersion } , new Object [ ] { Act . TestEmployee , 1 , Default_FirstName } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . NONE } , new Object [ ] { Act . TestException , 0 , null } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . READ } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . WRITE } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . OPTIMISTIC } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . OPTIMISTIC_FORCE_INCREMENT } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . PESSIMISTIC_READ } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . PESSIMISTIC_WRITE } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } , new Object [ ] { Act . RefreshWithLock , 1 , LockModeType . PESSIMISTIC_FORCE_INCREMENT } , new Object [ ] { Act . TestException , 0 , TransactionRequiredException . class } } ;