FontFamily extends AbstractCssProperty<FontFamily> { @Override public String getCssValue() { return cssValue; } FontFamily();  FontFamily(final String cssValue);  FontFamily(final String... fontFamilyNames);  FontFamily(final FontFamily fontFamily); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); @Override FontFamily setCssValue(final String cssValue); void setFontFamilyNames(final String[] fontFamilyNames); String[] getFontFamilyNames(); void setAsInitial(); void setAsInherit(); static void addFontFamilyName(final String fontFamilyName); static void addFontFamilyNames(
            final Collection<String> fontFamilyNames); Set<String> getAddedFontFamilyNames(); boolean isValidateFontFamilyName(); void setValidateFontFamilyName(
            final boolean validateFontFamilyName); static boolean isValidateFontFamilyNameGlobally(); static void setValidateFontFamilyNameGlobally(
            final boolean validateFontFamilyNameGlobally); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; static final String[] EMPTY_ARRAY; }
@Test public void testGetCssValue() { FontFamily fontFamily = new FontFamily(); assertEquals(0, fontFamily.getFontFamilyNames().length); String[] fontFamilyNames = { "Times New Roman", "Georgia", GenericFontFamilyNameContants.SERIF }; fontFamily.setFontFamilyNames(fontFamilyNames); assertEquals("\"Times New Roman\", Georgia, serif", fontFamily.getCssValue()); assertEquals(3, fontFamily.getFontFamilyNames().length); assertEquals(fontFamilyNames[0], fontFamily.getFontFamilyNames()[0]); assertEquals(fontFamilyNames[1], fontFamily.getFontFamilyNames()[1]); assertEquals(fontFamilyNames[2], fontFamily.getFontFamilyNames()[2]); assertEquals(CssNameConstants.FONT_FAMILY + ": \"Times New Roman\", Georgia, serif", fontFamily.toString()); }