@Test
public void testParseMonkey() throws Exception {

  Spanned text = parseCueText("< u>An unclosed u tag with <<<<< i>italic</u></u></u></u    >"
      + "</i><u><u> inside");
  assertThat(text.toString()).isEqualTo("An unclosed u tag with italic inside");
  text = parseCueText(">>>>>>>>>An unclosed u tag with <<<<< italic</u></u></u>"
      + "</u  ></i><u><u> inside");
  assertThat(text.toString()).isEqualTo(">>>>>>>>>An unclosed u tag with  inside");
}