GlobalDeclarationPersistenceBackendService implements ConfigPersistenceBackendService<GlobalDeclaration> { @Override public boolean supports(Class<? extends ConfigItem<?>> configItemType) { return GlobalConfiguration.class.isAssignableFrom(configItemType); }  void setStorageFilePath(String storageFilePath); @Override List<ConfigItem<GlobalDeclaration>> load(Map<String, String> metadata); @SuppressWarnings("unchecked") @Override void persist(ConfigItem<GlobalDeclaration> config); @Override void remove(Map<String, String> metadata); @Override boolean supports(Class<? extends ConfigItem<?>> configItemType);  }
@Test public void testServiceSupportsConfigItem_shouldAcceptGlobalConfiguration() throws Exception { assertTrue(service.supports(GlobalConfiguration.class)); assertFalse(service.supports(ImportConfiguration.class)); }