AggregatingDataStore store = (AggregatingDataStore) DataStoreFinder.getDataStore(params);
List<AggregateTypeConfiguration> configs = new ArrayList<AggregateTypeConfiguration>(store
.getConfigurations().values());
AggregatingDataStoreFactory factory = new AggregatingDataStoreFactory();
String xml = factory.encodeConfiguration(configs);
List<AggregateTypeConfiguration> configs2 = factory.parseConfiguration(xml);
assertEquals(configs, configs2);
}