@Test
public void convertStringToBoolean() throws ParserException {

    Object converted = SchemaValueConverter.convert(Schema.Type.BOOLEAN, "true");
    Assert.assertTrue(Schema.Type.BOOLEAN.valueOfSameType(converted));
    Assert.assertEquals(Boolean.TRUE, converted);
    converted = SchemaValueConverter.convert(Schema.Type.BOOLEAN, "False");
    Assert.assertTrue(Schema.Type.BOOLEAN.valueOfSameType(converted));
    Assert.assertEquals(Boolean.FALSE, converted);
    // this follows the conversion rule of Java Boolean: all the non-true is false
    converted = SchemaValueConverter.convert(Schema.Type.BOOLEAN, "hello");
    Assert.assertTrue(Schema.Type.BOOLEAN.valueOfSameType(converted));
    Assert.assertEquals(Boolean.FALSE, converted);
}