@Test
public void testResolveMergeSingleReferentialStyleIntoInlineStyle() {

  Map<String, TtmlStyle> globalStyles = getGlobalStyles();
  String[] styleIds = {"s0"};
  TtmlStyle style = new TtmlStyle();
  style.setBackgroundColor(Color.YELLOW);
  TtmlStyle resolved = TtmlRenderUtil.resolveStyle(style, styleIds, globalStyles);
  assertThat(resolved).isSameInstanceAs(style);
  // inline attribute not overridden
  assertThat(resolved.getBackgroundColor()).isEqualTo(YELLOW);
  // inherited from referential style
  assertThat(resolved.getStyle()).isEqualTo(STYLE_BOLD);
}