@Test
/**
 * tests comparison when a property has a getter with private scope
 *
 * <p>test that a NullPointerException exception is thrown when the first argument to
 * @{link  org.kuali.rice.krad.util.BeanPropertyComparator#compare(java.lang.Object, java.lang.Object)}

 * has a private scoped getter</p>
 */
public void testCompare_privateProperty() {
    List privateProperty = Arrays.asList(new String[] { "s" });
    BeanPropertyComparator bpc = new BeanPropertyComparator(privateProperty);
    C c = new C("something else", 1, true);
    A a = new A("something", new Integer(0), Boolean.valueOf(false));
    boolean failedAsExpected = false;
    try {
        bpc.compare(c, a);
    }
    catch (BeanComparisonException e) {
        if (e.getCause() instanceof NullPointerException) {
            failedAsExpected = true;
        }
    }
    Assert.assertTrue(failedAsExpected);
}