MappingManager { protected static String getFunctionName(String call) { if (call.contains("(") && call.contains(")")) return call.replace("()", ""); else { String firstLetter = call.substring(0, 1).toUpperCase(); String lastLetters = call.substring(1, call.length()); return "get" + firstLetter + lastLetters; } } 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 testGetFunctionName() throws Exception { assertEquals("getName", MappingManager.getFunctionName("getName()")); }
@Test public void testGetFunctionName2() throws Exception { assertEquals("getName", MappingManager.getFunctionName("name")); }