private boolean fileContentIsUnchanged(String path, byte[] dataToWrite) throws IOException {
        if (!Files.exists(Paths.get(path))) {
            return false;
        }
        byte[] existingData = TestFileUtil.readFile(path);
        return Arrays.equals(existingData, dataToWrite);
    }
Decodes the given byte array using the current version of the test case.

@param data The data to decode.
@return The decoded routable.
documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/MessagesTestBase.java