@Override
    public void write(int byteValue) throws IOException {
        byte[] bytes = new byte[] {(byte) byteValue};
        write(bytes);
    }
@Test
    public void shouldFailOnPartialWrite() throws IOException {
        if (!closed) {
            blobStorage.maxWriteCount = 1;
            byte[] bytes = new byte[2];
            random.nextBytes(bytes);

            assertThrows(IOException.class, () -> fsDataOutputStream.write(bytes));
        }
    }