ReadOnlyOneBitSet implements BitSet { @Override public int getSize() { return size; } ReadOnlyOneBitSet(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 size() { for (int i = 0; i < SIZE; i++) assertEquals(i, new ReadOnlyOneBitSet(i).getSize()); }