Generic methods for assertions