### Question:
BitMask2 { public boolean isBitSet(int bit) { long bitMask = Long.rotateLeft(1, bit); long result = this.bitMaskValue & bitMask; if (result != 0) { return true; } return false; } BitMask2();  BitMask2(long currentValue); long getBitMaskValue(); void setBit(int bit); void unsetBit(int bit); boolean isBitSet(int bit);  }### Answer:
@Test public void checkFirstBitTest() { BitMask2 bm = new BitMask2(0x8000000000000000L); assertEquals(true, bm.isBitSet(63)); }
@Test public void checkNumberBitTest() { for (int bitNumber = 0; bitNumber < 64; bitNumber++) { long bitMask = Long.rotateLeft(1, bitNumber); BitMask2 bm = new BitMask2(bitMask); assertEquals(true, bm.isBitSet(bitNumber)); } }