question: public void testValueOfLongNegative1 ( ) { long longVal = - 268209772258930018L ; BigInteger aNumber = BigInteger . valueOf ( longVal ) ; byte rBytes [ ] = { - 4 , 71 , 32 , - 94 , 23 , 55 , - 46 , - 98 } ; byte resBytes [ ] = new byte [ rBytes . length ] ; resBytes = aNumber . toByteArray ( ) ; for ( int i = 0 ; i < resBytes . length ; i ++ ) { assertTrue ( resBytes [ i ] == rBytes [ i ] ) ; } assertEquals ( "incorrect sign" , - 1 , aNumber . signum ( ) ) ; }
target:  valueOf (long val): convert a negative long value to a BigInteger.