@Test
public void convertIntegerToDouble() throws ParserException {

    Object converted = SchemaValueConverter.convert(Schema.Type.DOUBLE, Integer.MAX_VALUE);
    Assert.assertTrue(Schema.Type.DOUBLE.valueOfSameType(converted));
    Assert.assertEquals(Integer.MAX_VALUE * 1.0, (double) converted, 0.00001);
    converted = SchemaValueConverter.convert(Schema.Type.DOUBLE, Integer.MIN_VALUE);
    Assert.assertTrue(Schema.Type.DOUBLE.valueOfSameType(converted));
    Assert.assertEquals(Integer.MIN_VALUE * 1.0, (double) converted, 0.00001);
}