MappingManager { public static boolean isCallMapping(String[] args) { return args.length == 1 && args[0].startsWith("$"); } MappingManager(); static boolean isCallMapping(String[] args); String evaluate(Object object, String call); void mapObject(String name, Object object); void mapList(String name, List list); void appendList(String mappedName, List list); List getMappedList(String name); void callMappingOnView(CarpaccioAction action, View view, Object mappedObject); MappingManagerCallback getMappingManagerCallback(); void setMappingManagerCallback(MappingManagerCallback mappingManagerCallback); Object getMappedListsObject(String name, int position); Object getMappedObject(String name);  }
@Test public void testIsCallMapping() throws Exception { String[] call = new String[]{"$user"}; assertTrue(MappingManager.isCallMapping(call)); }
@Test public void testIsCallMapping_multiple() throws Exception { String[] call = new String[]{"$user1","$user2"}; assertFalse(MappingManager.isCallMapping(call)); }
@Test public void testIsCallMapping_false() throws Exception { String[] call = new String[]{"user1"}; assertFalse(MappingManager.isCallMapping(call)); }
@Test public void testIsCallMapping_empty() throws Exception { String[] call = new String[]{}; assertFalse(MappingManager.isCallMapping(call)); }