@Disabled // Manual only
    @Test
    void createTestFileWithBadBytes() throws IOException {
        final byte[] bytes = new ByteArrayBuilder(StandardCharsets.UTF_8)
                .append("this bit is ok")
                .append(0x8E)
                .append(0x80)
                .append("and so is this")
                .append(0x80)
                .append(0x8E)
                .toByteArray();

        Files.write(
                Path.of("/tmp/1.txt"),
                bytes,
                StandardOpenOption.CREATE,
                StandardOpenOption.WRITE);
    }
Little manual test to make a file with bad bytes in it for curling into stroom
stroom-pipeline/src/test/java/stroom/pipeline/reader/TestByteStreamDecoder.java