@Test
public void testAppendNumberOfSamples() throws Exception {

  ParsableByteArray buffer = new ParsableByteArray(4);
  buffer.setLimit(0);
  VorbisReader.appendNumberOfSamples(buffer, 0x01234567);
  assertThat(buffer.limit()).isEqualTo(4);
  assertThat(buffer.data[0]).isEqualTo(0x67);
  assertThat(buffer.data[1]).isEqualTo(0x45);
  assertThat(buffer.data[2]).isEqualTo(0x23);
  assertThat(buffer.data[3]).isEqualTo(0x01);
}