@Test
public void testPropertiesRoundTrip() throws Exception {

    Properties config = new Properties();
    config.put("max.field.values", "10");
    ObjectStore os = ObjectStoreFactory.getObjectStore("os.unittest");
    ObjectStoreSummary oss = new ObjectStoreSummary(os, config);
    Properties out = oss.toProperties();
    ObjectStoreSummary ossFromProps = new ObjectStoreSummary(out);
    Assert.assertEquals(out, ossFromProps.toProperties());
    Assert.assertEquals(10, oss.maxValues);
    Assert.assertEquals(10, ossFromProps.maxValues);
}