@Override
    public boolean intersects(BitMask mask) {
        return mask instanceof LongBitMask ?
               (this.mask & ((LongBitMask)mask).asLong()) != 0 :
               mask.intersects(this);
    }
@Test
  public void testIntersects() {
      assertThat(new LongBitMask(0L).intersects(EmptyBitMask.get())).isFalse();
      assertThat(new LongBitMask(0L).intersects(new LongBitMask(0L))).isFalse();
      assertThat(new LongBitMask(2L).intersects(new LongBitMask(2L))).isTrue();
  }