@Test
public void testCallFunctionOnObjects() throws Exception {

    View mockView = mock(View.class);
    TestObject spyObject = spy(new TestObject());
    String[] args = new String[]{"value1"};
    Method method = CarpaccioHelper.callFunction(spyObject, "getName", mockView, args);
    assertNotNull(method);
    verify(spyObject, atLeastOnce()).getName(eq(mockView), eq("value1"));
}