ContextFilePersistenceService implements ConfigPersistenceBackendService<Map<String, String>> { @Override public boolean supports(Class<? extends ConfigItem<?>> configItemType) { return ContextConfiguration.class.isAssignableFrom(configItemType); }  @Override List<ConfigItem<Map<String, String>>> load(Map<String, String> metadata); @SuppressWarnings("unchecked") @Override void persist(ConfigItem<Map<String, String>> config); @Override void remove(Map<String, String> metadata); @Override boolean supports(Class<? extends ConfigItem<?>> configItemType); void setStorageFolderPath(String storageFolderPath); static final String CONTEXT_FILE_EXTENSION; }
@Test public void testContextFilePersistenceService_shouldSupportContext() throws Exception { assertThat(persistenceService.supports(ContextConfiguration.class), is(true)); }
@Test public void testContextFilePersistenceService_shouldNotSupportUnknownConfigItemType() throws Exception { assertThat(persistenceService.supports(UnknownConfigItem.class), is(false)); }