question: public void testCase22 ( ) { byte aBytes [ ] = { 1 , 2 , 3 , 4 , 5 , 6 , 7 } ; byte bBytes [ ] = { 1 , 30 , 40 , 56 , - 1 , 45 } ; int aSign = 1 ; int bSign = - 1 ; BigInteger aNumber = new BigInteger ( aSign , aBytes ) ; BigInteger bNumber = new BigInteger ( bSign , bBytes ) ; try { aNumber . mod ( bNumber ) ; fail ( "ArithmeticException has not been caught" ) ; } catch ( ArithmeticException e ) { } }
target:  mod when modulus is negative