@Test
public void testReset() {

  ParsableNalUnitBitArray array = new ParsableNalUnitBitArray(createByteArray(0, 0), 0, 2);
  assertThat(array.canReadExpGolombCodedNum()).isFalse();
  assertThat(array.canReadBits(16)).isTrue();
  assertThat(array.canReadBits(17)).isFalse();
  array.reset(createByteArray(0, 0, 3, 0), 0, 4);
  assertThat(array.canReadBits(24)).isTrue();
  assertThat(array.canReadBits(25)).isFalse();
}