@Test
public void testCreateMessagesWithMultipleFiles() throws IOException {

    MessageCreateRequest req = MessageCreateRequest.builder()
            .content("Hello world with *multiple* files!")
            .build();
    try (InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("fileTest.txt")) {
        if (inputStream == null) {
            throw new NullPointerException();
        }
        byte[] bytes = readAllBytes(inputStream);
        ByteArrayInputStream in0 = new ByteArrayInputStream(bytes);
        ByteArrayInputStream in1 = new ByteArrayInputStream(bytes);
        List<Tuple2<String, InputStream>> files = Arrays.asList(Tuples.of("file0.txt", in0),
                Tuples.of("file1.txt", in1));
        MultipartRequest<MessageCreateRequest> request = new MultipartRequest<>(req, files);
        channelService.createMessage(permanentChannel, request).block();
    }
}