### Question:
AppConfigBaseModel { public ArrayList<String> globalValueList() { return valueList(false, true); }  ArrayList<String> configurationValueList(); ArrayList<String> globalValueList(); ArrayList<String> getConfigurationCategories(); ArrayList<String> getGlobalCategories(); boolean valueBelongsToCategory(String value, String category); Object getCurrentValue(String value); void applyCustomSettings(String configName, AppConfigStorageItem item);  }### Answer:
@Test public void testGlobalValueListForFields() { DerivedModelWithFields model = new DerivedModelWithFields(); String[] expectedValues = { "globalComplexEnumField", "globalStringField" }; String[] modelValues = model.globalValueList().toArray(new String[0]); Arrays.sort(expectedValues); Arrays.sort(modelValues); Assert.assertArrayEquals(expectedValues, modelValues); }
@Test public void testGlobalValueListForMethods() { DerivedModelWithMethods model = new DerivedModelWithMethods(); String[] expectedValues = { "globalComplexEnumField", "globalStringField" }; String[] modelValues = model.globalValueList().toArray(new String[0]); Arrays.sort(expectedValues); Arrays.sort(modelValues); Assert.assertArrayEquals(expectedValues, modelValues); }