@Test
public void testReadVorbisModes() throws IOException {

  byte[] data =
      TestUtil.getByteArray(
          ApplicationProvider.getApplicationContext(), "binary/vorbis/setup_header");
  ParsableByteArray headerData = new ParsableByteArray(data, data.length);
  VorbisUtil.Mode[] modes = VorbisUtil.readVorbisModes(headerData, 2);
  assertThat(modes).hasLength(2);
  assertThat(modes[0].blockFlag).isFalse();
  assertThat(modes[0].mapping).isEqualTo(0);
  assertThat(modes[0].transformType).isEqualTo(0);
  assertThat(modes[0].windowType).isEqualTo(0);
  assertThat(modes[1].blockFlag).isTrue();
  assertThat(modes[1].mapping).isEqualTo(1);
  assertThat(modes[1].transformType).isEqualTo(0);
  assertThat(modes[1].windowType).isEqualTo(0);
}