This test violates Arrange Act Assert more than a bit. Not enough of an issue to force change here (time is probably better spend on other things), though do please try to keep hat rule in mind. Tests can also contain technical debt and be a maintenance hassle. Again, not that much of an issue here. It is an integration test, so this kind of thing is somewhat less bad.