@Test
public void convertLongToLong() throws ParserException {

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