@Test
public void testPrimitiveAndBoxedTypes() {

    class MyParser extends Configurable {
        @Field(required = true) int config;
        @Field(required = true, name = "config") Integer config2;
    }
    Map<String, Param> params = new HashMap<>();
    try {
        MyParser bean = new MyParser();
        int val = 100;
        params.put("config", new Param<>("config", val));
        AnnotationUtils.assignFieldParams(bean, params);
        Assert.assertTrue(bean.config == bean.config2);
        Assert.assertTrue(bean.config == val);
    } catch (TikaConfigException e) {
        e.printStackTrace();
        Assert.fail("Exception Not expected");
    }
}