function assertHashMapValues(map, values) {
    const hashMapValues = [...map];
    assert.deepStrictEqual(hashMapValues, values);

}
Check that the contents of the hash map match the values of the array.
@param {HashMap} map The list to check 
@param {Array} values An array of values that should match.
@throws {AssertionError} If the values in the list don't match the
     values in the array.