AccessReferenceMapperImpl implements AccessReferenceMapper { @Override public String getIndirectReference(String directReference) { HttpSession session = getSession(); AccessReferenceMap<String> map = getMap(); String indirectReference = map.addDirectReference(directReference); session.setAttribute("AccessReferenceMap", map); return indirectReference; }  @Override long getDirectReference(String indirectReference); @Override String getIndirectReference(String directReference); @Override void setupAccessReferenceMap(Iterable<? extends HasId> objects);  }
@Test public void testGetIndirectReference() { assertEquals(INDIRECT_REFERENCE, sut.getIndirectReference(DIRECT_REFERENCE_STRING)); }