@Test
    void testDeleteStreamTarget() throws IOException {
        final MetaProperties metaProperties = MetaProperties.builder()
                .feedName(FEED1)
                .typeName(StreamTypeNames.RAW_EVENTS)
                .build();

        final String testString = FileSystemTestUtil.getUniqueTestString();

        Meta meta;
        Target t;
        try (final Target streamTarget = streamStore.openTarget(metaProperties)) {
            meta = streamTarget.getMeta();
            t = streamTarget;
            TargetUtil.write(streamTarget, testString);
            streamStore.deleteTarget(t);
        }

        // We shouldn't be able to close a stream target again.
        assertThatThrownBy(t::close).isInstanceOf(RuntimeException.class);

        Meta reloadedMeta = metaService.find(FindMetaCriteria.createFromMeta(meta)).getFirst();
        assertThat(reloadedMeta).isNull();

        streamStore.deleteTarget(t);

        reloadedMeta = metaService.find(FindMetaCriteria.createFromMeta(meta)).getFirst();
        assertThat(reloadedMeta).isNull();
    }
Check that the list of stream contains the items we expect.

@param metaSet
@param expected
stroom-app/src/test/java/stroom/data/store/impl/fs/TestFileSystemStreamStore.java