### Question:
AllShowBitMap extends RangeBitmap { @Override public ImmutableBitMap getNot(int bound) { if (bound < end) { return new RangeBitmap(bound, end); } else { return new RangeBitmap(end, bound); } } private  AllShowBitMap(int rowCount); static ImmutableBitMap of(int rowCount); @Override byte[] toBytes(); @Override ImmutableBitMap getAnd(ImmutableBitMap index); @Override ImmutableBitMap getOr(ImmutableBitMap index); @Override ImmutableBitMap getAndNot(ImmutableBitMap index); @Override ImmutableBitMap getNot(int bound); @Override ImmutableBitMap clone(); @Override BitMapType getType();  }### Answer:
@Test public void testGetNot() { int rowCount = r.nextInt(BOUND); ImmutableBitMap im = AllShowBitMap.of(rowCount); ImmutableBitMap not = im.getNot(rowCount); if (!not.isEmpty()) { Assert.fail(); } }
@Test public void getNot() { BitmapAssert.equals(new RangeBitmap(5, 10), AllShowBitMap.of(10).getNot(5)); BitmapAssert.equals(new RangeBitmap(10, 15), AllShowBitMap.of(10).getNot(15)); BitmapAssert.equals(new EmptyBitmap(), AllShowBitMap.of(10).getNot(10)); }