void (java.util.List<String> expectedRealFontFamilies, java.util.List<String> expectedEffectiveFontFamilies, String expectedFontFamily, Object... namesAndSizes) { checkState(myPreferences, expectedRealFontFamilies, expectedEffectiveFontFamilies, expectedFontFamily, namesAndSizes); // check object copying FontPreferencesImpl preferences = new FontPreferencesImpl(); myPreferences.copyTo(preferences); // check myTemplateFontSize String fontName = "Another" + getNonExistingFontName(); assertEquals(myPreferences.getSize(fontName), preferences.getSize(fontName)); // check other fields checkState(myPreferences, preferences.getRealFontFamilies(), preferences.getEffectiveFontFamilies(), preferences.getFontFamily()); }