Asserts that given object has a property with the given name.
The object to check.
The property name to look for.
Optional
Optional reason added to exception message when assertion fails.
AssertionError when object does not have given property.
Asserts that given object has a property with the given name.