@Test
public void testMapObject_fail() throws Exception {

    User user = new User("florent");
    String name = "user";
    View view = mock(View.class);
    CarpaccioAction carpaccioAction = new CarpaccioAction("setTexteu($user.getName())");
    {
        ArrayList list = new ArrayList();
        list.add(new MappingWaiting(view,carpaccioAction,"setTexteu","user"));
        mappingManager.mappingWaitings.put("user", list);
    }
    mappingManager.mapObject(name, user);
    assertTrue(mappingManager.mappedObjects.containsKey(name));
    assertEquals(user, mappingManager.mappedObjects.get(name));
    verify(callback,atLeastOnce()).callActionOnView(eq(carpaccioAction), eq(view));
}