@Test
public void testGetArguments_numeric() throws Exception {

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