@Test
    void testDeSerialiseOnLoad() {
        final DocRef docRef = statisticStoreStore.createDocument("StatName1");
        final StatisticStoreDoc statisticsDataSource = statisticStoreStore.readDocument(docRef);
        statisticsDataSource.setDescription("My Description");
        statisticsDataSource.setStatisticType(StatisticType.COUNT);

        statisticsDataSource.setConfig(new StatisticsDataSourceData());
        statisticsDataSource.getConfig().addStatisticField(new StatisticField("tag1"));
        statisticsDataSource.getConfig().addStatisticField(new StatisticField("tag2"));

        statisticStoreStore.writeDocument(statisticsDataSource);

        final DocRef statisticStoreRef = statisticStoreStore.list().get(0);
        final StatisticStoreDoc statisticsDataSource2 = statisticStoreStore.readDocument(statisticStoreRef);
        assertThat(statisticsDataSource2).isNotNull();

        final StatisticStoreDoc statisticsDataSource3 = statisticStoreStore.readDocument(statisticStoreRef);

        // assertThat(((StatisticsDataSource)
        // statisticsDataSource3).getStatisticDataSourceData()).isNotNull();
        assertThat(statisticsDataSource3).isNotNull();
        assertThat(statisticsDataSource3.getConfig()).isNotNull();

        DocRef statisticDataSource3DocRef = DocRefUtil.create(statisticsDataSource3);
    }
Create a populated {@link StatisticStore} object, serialise it to file,
de-serialise it back to an object then compare the first object with the
second one
stroom-app/src/test/java/stroom/statistics/impl/sql/TestStatisticsDataSourceImportExportSerializer.java