LongBitMask extends SingleLongBitMask implements BitMask { @Override public String getInstancingStatement() { BitMask normalizedMask = normalize(); return normalizedMask instanceof LongBitMask ? "new " + LongBitMask.class.getCanonicalName() + "(" + mask + "L)" : normalizedMask.getInstancingStatement(); } LongBitMask();  LongBitMask(long mask); @Override BitMask set(int index); @Override BitMask setAll(BitMask mask); @Override BitMask reset(int index); @Override BitMask resetAll(BitMask mask); @Override boolean isSet(int index); @Override boolean isAllSet(); @Override boolean isEmpty(); @Override boolean intersects(BitMask mask); long asLong(); @Override LongBitMask clone(); @Override String getInstancingStatement();  }
@Test public void testGetInstancingStatement() { Assert.assertEquals( "org.drools.core.util.bitmask.EmptyBitMask.get()", new LongBitMask(0L).getInstancingStatement()); Assert.assertEquals( "org.drools.core.util.bitmask.EmptyButLastBitMask.get()", new LongBitMask(1L).getInstancingStatement()); Assert.assertEquals( "org.drools.core.util.bitmask.AllSetButLastBitMask.get()", new LongBitMask(Long.MAX_VALUE).getInstancingStatement()); Assert.assertEquals( "org.drools.core.util.bitmask.AllSetBitMask.get()", new LongBitMask(-1L).getInstancingStatement()); Assert.assertEquals( "new org.drools.core.util.bitmask.LongBitMask(2L)", new LongBitMask(2L).getInstancingStatement()); }