* the same key as the one already existing, it will be overwritten.
*/
@Test
public void testOverwrite() {
Hashtable<String, SAMLObject> storage = new Hashtable<String, SAMLObject>();
Audience audienceMock = createNiceMock(Audience.class);
Assertion assertionMock = createNiceMock(Assertion.class);
storage.put("testKey", new SAMLObject<Audience>(audienceMock));
session = createMock(HttpSession.class);
expect(session.getId()).andReturn("session123").anyTimes();
expect(session.getAttribute(SPRING_SAML_STORAGE_KEY)).andReturn(storage);