public static String createImage(final @NotNull Path path) throws IOException {
        return createImage(ImageIO.read(Files.newInputStream(path)));
    }
@Test
    void testIOExceptionDuringImageProcessing() {
        mockWrite(mockedStatic -> assertThrows(IOException.class, () -> IOUtil.createImage(mockImage(64, 64))),
                () -> whenWrite().thenThrow(IOException.class));
    }