@Test
public void testGetArguments() throws Exception {

    Class viewClass = TextView.class;
    TextView textView = mock(TextView.class);
    String[] args = new String[]{"value1", "value2"};
    Object[] outArgs = CarpaccioHelper.getArgumentsWithView((View) textView, new Class[]{TextView.class, String.class, String.class}, args);
    Object[] expectedArgs = new Object[]{textView, "value1", "value2"};
    assertArrayEquals(expectedArgs, outArgs);
    assertTrue(outArgs[0] instanceof TextView);
}