Most of those assertions was totally not needed.

Like:
if it was going to be null - then clearly it couldn't be equal to some string.