Move an assert method in abstract class.