@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());
}