function getRestoredObjectMD(date) {
    const restoreDays = 5;
    const restoreDate = new Date((date || Date.now()) - 10000);
    const expiryDate = date || new Date(restoreDate.getTime() + 1000 * 60 * 60 * 24 * restoreDays);

    const restoringObjectMD = getRestoringObjectMD();
    const restoreInfo = new ObjectMDAmzRestore(
        false,
        expiryDate,
    );
    restoreInfo['content-md5'] = restoredEtag;

    return restoringObjectMD
        .setAmzRestore(restoreInfo)
        .setArchive(new ObjectMDArchive(
            restoringObjectMD.getArchive().getArchiveInfo(),
            new Date(Date.now() - 60000),
            restoreDays,
            restoreDate,
            expiryDate,
        ))
        .setDataStoreName('mem')
        .setOriginOp('s3:ObjectRestore:Completed');
}
Computes the object MD as a restored object from cold storage
@param {Date} date - the expiry date of the restored object
@returns {ObjectMD} the MD object