@Test
public void testParseSpsNalUnit() {

  NalUnitUtil.SpsData data = NalUnitUtil.parseSpsNalUnit(SPS_TEST_DATA, SPS_TEST_DATA_OFFSET,
      SPS_TEST_DATA.length);
  assertThat(data.width).isEqualTo(640);
  assertThat(data.height).isEqualTo(360);
  assertThat(data.deltaPicOrderAlwaysZeroFlag).isFalse();
  assertThat(data.frameMbsOnlyFlag).isTrue();
  assertThat(data.frameNumLength).isEqualTo(4);
  assertThat(data.picOrderCntLsbLength).isEqualTo(6);
  assertThat(data.seqParameterSetId).isEqualTo(0);
  assertThat(data.pixelWidthAspectRatio).isEqualTo(1.0f);
  assertThat(data.picOrderCountType).isEqualTo(0);
  assertThat(data.separateColorPlaneFlag).isFalse();
}