@Test
public void testHexCodeParsing() {

  assertThat(parseTtmlColor("#FFFFFF")).isEqualTo(WHITE);
  assertThat(parseTtmlColor("#FFFFFFFF")).isEqualTo(WHITE);
  assertThat(parseTtmlColor("#123456")).isEqualTo(parseColor("#FF123456"));
  // Hex colors in ColorParser are RGBA, where-as {@link Color#parseColor} takes ARGB.
  assertThat(parseTtmlColor("#FFFFFF00")).isEqualTo(parseColor("#00FFFFFF"));
  assertThat(parseTtmlColor("#12345678")).isEqualTo(parseColor("#78123456"));
}