BitsLong { public static final boolean test(long bits, boolean isSet, int bitIndex) { check(bitIndex) ; return test$(bits, isSet, bitIndex) ; } private  BitsLong(); static final long unpack(long bits, int start, int finish); static final long pack(long bits, long value, int start, int finish); static final long unpack(String str, int startChar, int finishChar); static final long set(long bits, int bitIndex); static final long set(long bits, int start, int finish); static final boolean test(long bits, boolean isSet, int bitIndex); static final boolean isSet(long bits, int bitIndex); static final boolean test(long bits, long value, int start, int finish); static final long access(long bits, int start, int finish); static final long clear(long bits, int bitIndex); static final long clear(long bits, int start, int finish); static final long mask(int start, int finish); static final long maskZero(int start, int finish);  }
@Test public void testBitTest1() { long v = 0 ; assertTrue(BitsLong.test(v, false, 0)) ; }
@Test public void testBitTest2() { long v = 1 ; assertTrue(BitsLong.test(v, true, 0)) ; }
@Test public void testBitTest3() { long v = -1 ; assertTrue(BitsLong.test(v, true, 63)) ; }
@Test public void testBitTest4() { long v = 0x7FFFFFFFFFFFFFFFL ; assertTrue(BitsLong.test(v, false, 63)) ; }
@Test public void testBitsTest1() { long v = 0xFEDCBA9876543210L ; assertTrue(BitsLong.test(v, 0x0, 0, 4)) ; }
@Test public void testBitsTest2() { long v = 0xFEDCBA9876543210L ; assertTrue(BitsLong.test(v, 0x10, 0, 8)) ; }
@Test public void testBitsTest3() { long v = 0xFEDCBA9876543210L ; assertTrue(BitsLong.test(v, v, 0, 64)) ; }
@Test public void testBitsTest4() { long v = 0xFEDCBA9876543210L ; assertFalse(BitsLong.test(v, 0, 0, 64)) ; }
@Test public void testBitsTest5() { long v = 0xFEDCBA9876543210L ; assertTrue(BitsLong.test(v, 0x0000BA9876540000L, 16, 48)) ; }