public void testSaveResources(){
ToolBarSeparatorImage img = new DotSeparatorImage();
Skin skin = SkinFactory.getInstance().getSkin(facesContext);
Skin defaultSkin = SkinFactory.getInstance().getDefaultSkin(facesContext);
String skinParameter1 = "headerBackgroundColor";
String headerBackgroundColor = (String) skin.getParameter(facesContext, skinParameter1);
if (null == headerBackgroundColor || "".equals(headerBackgroundColor))
headerBackgroundColor = (String) defaultSkin.getParameter(facesContext, skinParameter1);
headerBackgroundColor = headerBackgroundColor == null ? "#224986" : headerBackgroundColor;
Color color1 = HtmlColor.decode(headerBackgroundColor);
String skinParameter2 = "headerGradientColor";
String headerGradientColor = (String) skin.getParameter(facesContext, skinParameter2);
if (null == headerGradientColor || "".equals(headerGradientColor))
headerGradientColor = (String) defaultSkin.getParameter(facesContext, skinParameter2);
headerGradientColor = headerGradientColor == null ? "#CCCCFF" : headerGradientColor;
Color color2 = HtmlColor.decode(headerGradientColor);
String skinParameter3 = "headerTextColor";
String headerTextColor = (String) skin.getParameter(facesContext, skinParameter3);
if (null == headerTextColor || "".equals(headerTextColor))
headerTextColor = (String) defaultSkin.getParameter(facesContext, skinParameter3);
headerTextColor = headerTextColor == null ? "#000000" : headerTextColor;
Color color3 = HtmlColor.decode(headerTextColor);
String skinParameter4 = "headerSizeFont";
String headerSizeFont = (String) skin.getParameter(facesContext, skinParameter4);
if (null == headerSizeFont || "".equals(headerSizeFont))
headerSizeFont = (String) defaultSkin.getParameter(facesContext, skinParameter4);
headerSizeFont = headerSizeFont == null ? "11px" : headerSizeFont;
headerSizeFont = headerSizeFont.substring(0, headerSizeFont.indexOf("px"));