@Test
public void convertDoubleToDouble() throws ParserException {

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