ReadOnlyZeroBitSet implements BitSet { @Override public boolean get(final int i) { assert 0 <= i && i < size; return false; } ReadOnlyZeroBitSet(final int size); @Override int getSize(); @Override int cardinality(); @Override void set(final int i); @Override boolean get(final int i); void clear(); @Override boolean inverse(); void set(); @Override boolean and(
            @NotNull
            final BitSet set); @Override boolean or(
            @NotNull
            final BitSet set); @Override boolean xor(
            @NotNull
            BitSet set); @Override boolean and(@NotNull Buffer longArrayBitSetInByteBuffer, long startPosition, int bitSetSizeInLongs); @Override boolean or(
            @NotNull
            final Buffer longArrayBitSetInByteBuffer,
            final long startPosition,
            final int bitSetSizeInLongs); @Override boolean xor(@NotNull Buffer longArrayBitSetInByteBuffer, long startPosition, int bitSetSizeInLongs); @Override boolean isEmpty(); @Override int nextSetBit(final int fromIndexInclusive);  }
@Test public void get() { for (int i = 1; i < SIZE; i++) { final BitSet bs = new ReadOnlyZeroBitSet(i); assertFalse(bs.get(0)); assertFalse(bs.get(i / 2)); assertFalse(bs.get(i - 1)); } }
@Test(expected = AssertionError.class) public void invalidGet() { final BitSet bs = new ReadOnlyZeroBitSet(1); bs.get(1); }
@Test(expected = AssertionError.class) public void invalidNegativeGet() { final BitSet bs = new ReadOnlyZeroBitSet(1); bs.get(-1); }