private Meta buildRefData(final String feed,
                              final int year,
                              final int month,
                              final String type,
                              final boolean lock)
            throws IOException {
        final String testString = FileSystemTestUtil.getUniqueTestString();

        final MetaProperties metaProperties = MetaProperties.builder()
                .feedName(feed)
                .typeName(type)
                .effectiveMs(
                        ZonedDateTime.of(year, month, N1, N13, 0, 0, 0, ZoneOffset.UTC)
                                .toInstant()
                                .toEpochMilli())
                .build();

        final Target streamTarget = streamStore.openTarget(metaProperties);
        TargetUtil.write(streamTarget, testString);
//        streamTarget.close();
        // Leave locked ?
        if (!lock) {
            streamTarget.close();
        }
        // commonTestControl.clearContext();

        return streamTarget.getMeta();
    }
Check that the list of stream contains the items we expect.

@param list
@param expected
stroom-app/src/test/java/stroom/data/store/impl/fs/TestS3StreamStore.java