I see a assert, do, assert. Should be split up in 2 tests since you are testing 2 use cases. Map usage before the commit and map usage after the commit.