StyleUtil { public static String styleAttributeToProperty(String attributeStyle) { String propertyStyle; if (attributeStyle.startsWith("-")) { propertyStyle = attributeStyle.substring(1); } else { propertyStyle = attributeStyle; } return SharedUtil.dashSeparatedToCamelCase(propertyStyle); } private  StyleUtil(); static String styleAttributeToProperty(String attributeStyle); static String stylePropertyToAttribute(String propertyStyle);  }
@Test public void attributeToProperty() { stylepPropertyToAttribute.entrySet().forEach((entry) -> { String property = entry.getKey(); String attribute = entry.getValue(); Assert.assertEquals(property, StyleUtil.styleAttributeToProperty(attribute)); }); }