### Question:
JdbcRevisionManager implements RevisionManager { @Override public Map<String, Revision> getRevisionMap() { final Map<String,Revision> revisionMap = new HashMap<>(); final RevisionRowMapper rowMapper = new RevisionRowMapper(); jdbcTemplate.query("SELECT * FROM REVISION", (rs) -> { final Revision revision = rowMapper.mapRow(rs, 0); revisionMap.put(revision.getEntityId(), revision); }); return revisionMap; } JdbcRevisionManager(final JdbcTemplate jdbcTemplate); @Override Revision getRevision(final String entityId); @Override RevisionUpdate<T> updateRevision(final RevisionClaim claim, final UpdateRevisionTask<T> task); @Override T deleteRevision(final RevisionClaim claim, final DeleteRevisionTask<T> task); @Override void reset(final Collection<Revision> revisions); @Override List<Revision> getAllRevisions(); @Override Map<String, Revision> getRevisionMap();  }### Answer:
@Test public void testGetRevisionMap() { createRevision("entity1", new Long(1), null); createRevision("entity2", new Long(1), null); final Map<String,Revision> revisions = revisionManager.getRevisionMap(); assertNotNull(revisions); assertEquals(2, revisions.size()); final Revision revision1 = revisions.get("entity1"); assertNotNull(revision1); assertEquals("entity1", revision1.getEntityId()); final Revision revision2 = revisions.get("entity2"); assertNotNull(revision2); assertEquals("entity2", revision2.getEntityId()); }