### Question:
AppConfigBaseModel { public ArrayList<String> getConfigurationCategories() { return getCategories(true, false); }  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 testGetConfigurationCategories() { DerivedModelWithFields model = new DerivedModelWithFields(); String[] expectedValues = { "Enums", "Strings", "Numbers", "Booleans" }; String[] modelValues = model.getConfigurationCategories().toArray(new String[0]); Arrays.sort(expectedValues); Arrays.sort(modelValues); Assert.assertArrayEquals(expectedValues, modelValues); }
@Test public void testGetCategoriesWithUnCategorized() { DerivedModelWithMethods model = new DerivedModelWithMethods(); String[] expectedValues = { "Enums", "Strings", "Numbers", "" }; String[] modelValues = model.getConfigurationCategories().toArray(new String[0]); Arrays.sort(expectedValues); Arrays.sort(modelValues); Assert.assertArrayEquals(expectedValues, modelValues); }