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