@Test
public void testDecodeWithOtherExtension() throws IOException, SubtitleDecoderException {

  Tx3gDecoder decoder = new Tx3gDecoder(Collections.emptyList());
  byte[] bytes =
      TestUtil.getByteArray(
          ApplicationProvider.getApplicationContext(), SAMPLE_WITH_OTHER_EXTENSION);
  Subtitle subtitle = decoder.decode(bytes, bytes.length, false);
  SpannedString text = new SpannedString(subtitle.getCues(0).get(0).text);
  assertThat(text.toString()).isEqualTo("CC Test");
  assertThat(text.getSpans(0, text.length(), Object.class)).hasLength(2);
  StyleSpan styleSpan = findSpan(text, 0, 6, StyleSpan.class);
  assertThat(styleSpan.getStyle()).isEqualTo(Typeface.BOLD);
  ForegroundColorSpan colorSpan = findSpan(text, 0, 6, ForegroundColorSpan.class);
  assertThat(colorSpan.getForegroundColor()).isEqualTo(Color.GREEN);
  assertFractionalLinePosition(subtitle.getCues(0).get(0), 0.85f);
}