Maupassant also uses irony, which is when what you expect to happen is the opposite of what actually happens, and this is the driving force behind the surprise ending. It's ironic that the necklace is fake because Mathilde and her husband went into such debt to replace it.