public static <T> T decodeCommand(byte[] content, Class<T> clazz) {
        try {
            return SerializerManager.getSerializer(SerializerManager.Hessian2).deserialize(content, clazz.getName());
        } catch (final CodecException e) {
            throw new IllegalStateException(e);
        }
    }
Decode the command object from byte array.
@param content
@param clazz
@return
jraft-test/src/main/java/com/alipay/sofa/jraft/test/atomic/command/CommandCodec.java