Awaits for a side effect and checks if it matches the expected side effect
The expected side effect
if state does not match the expected change.