@Test
/**
 * test the comparison result when specifying a property of type Boolean
 */
public void testCompare_oneProperty_boolean() {

    List properties = Arrays.asList(new String[] { "b" });
    BeanPropertyComparator bpc = new BeanPropertyComparator(properties);
    A lesser = new A("One", new Integer(0), Boolean.valueOf(false));
    B greater = new B("One", new Integer(0), Boolean.valueOf(true));
    int lessThan = bpc.compare(lesser, greater);
    Assert.assertTrue(lessThan < 0);
    int greaterThan = bpc.compare(greater, lesser);
    Assert.assertTrue(greaterThan > 0);
    int equal = bpc.compare(greater, greater);
    Assert.assertTrue(equal == 0);
}