### Question:
ObjectiveC extends AbstractLanguage { @Nonnull @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(configuration.getStringArray(ObjectiveCPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(ObjectiveCPlugin.FILE_SUFFIXES_DEFVALUE, ","); } return suffixes; } @SuppressWarnings("WeakerAccess")  ObjectiveC(@Nonnull Configuration configuration); @Nonnull @Override String[] getFileSuffixes(); @Override boolean equals(Object o); @Override int hashCode(); static final String KEY; }### Answer:
@Test public void getFileSuffixes_withDefaultFileSuffixes() { String[] expected = {"h", "m", "mm"}; String[] actual = language.getFileSuffixes(); assertEquals(expected, actual); }
@Test public void getFileSuffixes_withFileSuffixes() { String[] languageSuffixes = {"h", "m"}; settings.setProperty(ObjectiveCPlugin.FILE_SUFFIXES_KEY, languageSuffixes); String[] actual = language.getFileSuffixes(); assertEquals(languageSuffixes, actual); }