Constraint for testing for a parent class.