add assertHasCauseOfClass