Code example for HashMap

Methods: put

0
    } 
 
    @Test 
    public void TestSessionData() { 
        Conversable conversable = new FakeConversable();
        Map session = new HashMap();
        session.put("key", "value");
        ConversationContext context = new ConversationContext(null, conversable, session);
        assertEquals("value", context.getSessionData("key"));
    } 
}