You can use assertContains() and assertNotContains() here. They generally result in simpler/faster tests.