private void assertEqualMaps(Map<String, Object> expected, Map<String, Object> actual) {
        assertEquals(expected.size(), actual.size(), "Map sizes");
        assertEquals(expected.keySet(), actual.keySet(), "Keys");
        for (var expectedEntry : expected.entrySet()) {
            assertEquals(expectedEntry.getValue(), actual.get(expectedEntry.getKey()), "Key '" + expectedEntry.getKey() + "'");
        }
    }
Asserts that the expected fields are what is returned from every access method of Hit
container-search/src/test/java/com/yahoo/prelude/fastsearch/SlimeSummaryTestCase.java