StoreContext storeContext = getStoreContext(connectorName);
Map<String, String> configMap = new HashMap<String, String>();
configMap.put("property1", "value1");
configMap.put("property2", "2");
configMap.put("property3", "true");
Configuration expectedConfig =
new Configuration(TYPENAME, configMap, CONFIG_XML);
store.storeConnectorConfiguration(storeContext, expectedConfig);
Configuration resultConfig = store.getConnectorConfiguration(storeContext);
ConnectorTestUtils.compareConfigurations(expectedConfig, resultConfig);
// Now change the configuration and make sure it sticks.
configMap.remove("property2");
configMap.put("property4", "score");
expectedConfig = new Configuration(TYPENAME, configMap, null);
store.storeConnectorConfiguration(storeContext, expectedConfig);
resultConfig = store.getConnectorConfiguration(storeContext);
ConnectorTestUtils.compareConfigurations(expectedConfig, resultConfig);
}