I\'d like to use hamcrest to assert that two maps are equal, i.e. they have the same set of keys pointing to the same values.
My current best guess is:
a
This works like a charm and doesn't require two assertions like the accepted answer.
assertThat( actualData.entrySet().toArray(), arrayContainingInAnyOrder(expectedData.entrySet().toArray()) );