@Test
public void convertIntegerToInteger() throws ParserException {

    Object converted = SchemaValueConverter.convert(Schema.Type.INTEGER, Integer.MAX_VALUE);
    Assert.assertTrue(Schema.Type.INTEGER.valueOfSameType(converted));
    Assert.assertEquals(Integer.MAX_VALUE, converted);
    converted = SchemaValueConverter.convert(Schema.Type.INTEGER, Integer.MIN_VALUE);
    Assert.assertTrue(Schema.Type.INTEGER.valueOfSameType(converted));
    Assert.assertEquals(Integer.MIN_VALUE, converted);
}