FontFamily extends AbstractCssProperty<FontFamily> { public void setAsInherit() { setCssValue(INHERIT); } 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 testSetAsInherit() { FontFamily fontFamily = new FontFamily("\"Times New Roman\", Georgia, " + GenericFontFamilyNameContants.SERIF); assertEquals("\"Times New Roman\", Georgia, serif", fontFamily.getCssValue()); assertEquals(3, fontFamily.getFontFamilyNames().length); assertEquals("Times New Roman", fontFamily.getFontFamilyNames()[0]); assertEquals("Georgia", fontFamily.getFontFamilyNames()[1]); assertEquals(GenericFontFamilyNameContants.SERIF, fontFamily.getFontFamilyNames()[2]); fontFamily.setAsInherit(); assertEquals(0, fontFamily.getFontFamilyNames().length); assertEquals(FontFamily.INHERIT, fontFamily.getCssValue()); }