    @Test
    public void testInteger() {

        Converter<?> converter = conversion.getConverter(Integer.class, null);

        Map<String, String[]> data = new HashMap<String, String[]>();
        data.put("val1", new String[]{"1"});
        data.put("val2", new String[]{"2", "3", "4"});

        //convert a single value
        Object val = converter.convert("val1", data);
        Assert.assertTrue(val instanceof Integer);
        Assert.assertTrue(new Integer(1).equals(val));

        //convert a array
        converter = conversion.getConverter(Integer[].class, null);
        val = converter.convert("val2", data);
        Assert.assertTrue(val instanceof Integer[]);
        Integer[] arr = (Integer[]) val;
        Assert.assertTrue(new Integer(2).equals(arr[0]));
        Assert.assertTrue(new Integer(3).equals(arr[1]));
        Assert.assertTrue(new Integer(4).equals(arr[2]));
    }