Updated to not check notThrown() and to use an expect clause.