AnnotatedSettingsDescriptor implements SettingsDescriptor { @Override public Set<String> getAllKeys() { return _allKeys; } AnnotatedSettingsDescriptor(Class<?> settingsClass); @Override Set<String> getAllKeys(); @Override Set<String> getMultiValuedKeys();  }
@Test public void testGetAllKeys() { Set<String> allKeys = _annotatedSettingsDescriptor.getAllKeys(); Collection<String> expectedAllKeys = Arrays.asList( "boolean", "long", "string", "stringArray1", "stringArray2", "unrenamedProperty"); Assert.assertEquals( allKeys.toString(), expectedAllKeys.size(), allKeys.size()); Assert.assertTrue(allKeys.containsAll(expectedAllKeys)); }