### Question:
ParsableBitArray { public void setPosition(int position) { byteOffset = position / 8; bitOffset = position - (byteOffset * 8); assertValidOffset(); } ParsableBitArray();  ParsableBitArray(byte[] data);  ParsableBitArray(byte[] data, int limit); void reset(byte[] data); void reset(ParsableByteArray parsableByteArray); void reset(byte[] data, int limit); int bitsLeft(); int getPosition(); int getBytePosition(); void setPosition(int position); void skipBit(); void skipBits(int numBits); boolean readBit(); int readBits(int numBits); void readBits(byte[] buffer, int offset, int numBits); void byteAlign(); void readBytes(byte[] buffer, int offset, int length); void skipBytes(int length); void putInt(int value, int numBits); public byte[] data; }### Answer:
@Test public void testSetPositionByteAligned() { testArray.setPosition(16); assertReadBitsToEnd(16); }
@Test public void testSetPositionNonByteAligned() { testArray.setPosition(5); assertReadBitsToEnd(5); }