@Test
    public void testReplaceSuffix() {
        assertEquals("blah.foo.text", Utils.replaceSuffix("blah.foo.txt", ".txt", ".text"));
        assertEquals("blah.foo", Utils.replaceSuffix("blah.foo.txt", ".txt", ""));
        assertEquals("txt.txt", Utils.replaceSuffix("txt.txt.txt", ".txt", ""));
        assertEquals("foo.txt", Utils.replaceSuffix("foo", "", ".txt"));
    }
Expectation setter for multiple reads where each one reads random bytes to the buffer.

@param channelMock           The mocked FileChannel object
@param bufferSize            The buffer size
@return Expected buffer string
@throws IOException          If an I/O error occurs
clients/src/test/java/org/apache/kafka/common/utils/UtilsTest.java