question: public void testGcdBothZeros ( ) { byte rBytes [ ] = { 0 } ; BigInteger aNumber = new BigInteger ( "0" ) ; BigInteger bNumber = BigInteger . valueOf ( 0L ) ; BigInteger result = aNumber . gcd ( bNumber ) ; byte resBytes [ ] = result . toByteArray ( ) ; for ( int i = 0 ; i < resBytes . length ; i ++ ) { assertTrue ( resBytes [ i ] == rBytes [ i ] ) ; } assertEquals ( "incorrect sign" , 0 , result . signum ( ) ) ; }
target:  gcd: both numbers are zeros