@Test
public void testDecodeEmpty() throws IOException {

  WebvttDecoder decoder = new WebvttDecoder();
  byte[] bytes = TestUtil.getByteArray(ApplicationProvider.getApplicationContext(), EMPTY_FILE);
  try {
    decoder.decode(bytes, bytes.length, /* reset= */ false);
    fail();
  } catch (SubtitleDecoderException expected) {
    // Do nothing.
  }
}