@Test
public void testParseStrictValidUnsupportedTagsStrippedOut() throws Exception {

  Spanned text = parseCueText("<v.first.loud Esme>This <unsupported>is</unsupported> text with "
      + "<notsupp><invalid>html</invalid></notsupp> tags");
  assertThat(text.toString()).isEqualTo("This is text with html tags");
  assertThat(getSpans(text, UnderlineSpan.class)).hasLength(0);
  assertThat(getSpans(text, StyleSpan.class)).hasLength(0);
}