For equality, using assertEquals it's better suited since when they differ, it prints out the expected and received value and you can quickly inspect the differences.