@Test
public void testCallMapping_withFunction() throws Exception {

    View view = mock(View.class);
    CarpaccioAction carpaccioAction = new CarpaccioAction("setText($user.getName())");
    mappingManager.callMappingOnView(carpaccioAction,view,null);
    assertTrue(mappingManager.mappingWaitings.containsKey("user"));
    MappingWaiting addedWaiting = mappingManager.mappingWaitings.get("user").get(0);
    assertNotNull(addedWaiting);
    assertEquals("user", addedWaiting.objectName);
    assertEquals("user.getName()", addedWaiting.call);
    assertEquals(carpaccioAction, addedWaiting.carpaccioAction);
    assertEquals(view, addedWaiting.view);
}