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