operationContext.putBlip(blip.getId(), blip);
assertEquals(operationContext.getBlip(conversation, blipId), blip);
}
public void testPutTemporaryBlip() throws Exception {
Conversation conversation = mock(Conversation.class);
ConversationBlip blip = mock(ConversationBlip.class);
String tempBlipId = OperationContextImpl.TEMP_ID_MARKER + "random";
String blipId = "b+1234";
when(blip.getId()).thenReturn(blipId);
when(conversation.getBlip(blipId)).thenReturn(blip);
operationContext.putBlip(tempBlipId, blip);
assertEquals("Expected blip for the given tempId",
operationContext.getBlip(conversation, tempBlipId), blip);
assertEquals("Expected blip when its non temporary id is given",