Tests whether the class instance is not null and fails with a proper message if it is null.
null
the Class
the Class Name for the error Message