@SuppressWarnings("unchecked")
    public Map<String, Long> load() throws IOException {
        byte[] bs = FileUtils.readFileToByteArray(new File(path));
        if (bs != null && bs.length > 0) {
            return CommandCodec.decodeCommand(bs, Map.class);
        }
        throw new IOException("Fail to load snapshot from " + path + ",content: " + Arrays.toString(bs));
    }
Save value to snapshot file.
@param values
@return
jraft-test/src/main/java/com/alipay/sofa/jraft/test/atomic/server/AtomicSnapshotFile.java