@Test
public void testParseMultipleTagsOfSameKind() {

  Spanned text = parseCueText("blah <b>blah</b> blah <b>foo</b>");
  assertThat(text.toString()).isEqualTo("blah blah blah foo");
  StyleSpan[] spans = getSpans(text, StyleSpan.class);
  assertThat(spans).hasLength(2);
  assertThat(text.getSpanStart(spans[0])).isEqualTo(5);
  assertThat(text.getSpanEnd(spans[0])).isEqualTo(9);
  assertThat(text.getSpanStart(spans[1])).isEqualTo(15);
  assertThat(text.getSpanEnd(spans[1])).isEqualTo(18);
  assertThat(spans[0].getStyle()).isEqualTo(BOLD);
  assertThat(spans[1].getStyle()).isEqualTo(BOLD);
}