StyleUtil { public static String stylePropertyToAttribute(String propertyStyle) { String attributeStyle = SharedUtil .camelCaseToDashSeparated(propertyStyle); int dashIndex = attributeStyle.indexOf("-"); if (dashIndex != -1) { String possibleVendorPrefix = propertyStyle.substring(0, dashIndex); for (String vendorPrefix : vendorPrefixes) { if (vendorPrefix.equals(possibleVendorPrefix)) { return "-" + attributeStyle; } } } return attributeStyle; } private  StyleUtil(); static String styleAttributeToProperty(String attributeStyle); static String stylePropertyToAttribute(String propertyStyle);  }
@Test public void propertyToAttribute() { stylepPropertyToAttribute.entrySet().forEach((entry) -> { String property = entry.getKey(); String attribute = entry.getValue(); Assert.assertEquals(attribute, StyleUtil.stylePropertyToAttribute(property)); }); }