### Question:
AvUtil extends GpCoreUtil { public static String fixBrokenBgColor(String oldHtml) { return oldHtml.replaceAll("color\\s?=\\s?[\",']([0-9,a-f,A-F]{6})[\",']", "#$1"); }  static String fixBrokenBgColor(String oldHtml); static boolean fixBrokenBgColor(File oldHtml);  }### Answer:
@Test public void testFixBrokenBgColor(){ String oldHtml = "<html> <head> </head> <body bgcolor=\"ffe07a\"> <p><img height=\"298\" src=\"images/n4_java_vulkan_semeru_rauch_lava.jpg\" align=\"top\" width=\"447\">" + "</p><p><font size=\"+1\">Eruption des Vulkans Semeru auf der indonesischen Insel Java, 2004 </font><br><a href=\"browser: "licence</a>&#160;M. Rietze </p></body></html>"; asserFixed(oldHtml, "#ffe07a"); asserFixed("bgcolor='blue'", "blue"); asserFixed("bgcolor='#0000DD'", "'#0000DD'"); asserFixed("bgcolor='ffe07a'", "#ffe07a"); asserFixed("color='ffe07a'", "#ffe07a"); asserFixed("bgcolor='FFE07A'", "#FFE07A"); }