@Test
/**
 * test the comparison of null objects
 */
public void testCompare_secondNullDates() throws ParseException {

	List propertiesD = Arrays.asList(new String[] { "d" });
	
	DateFormat dateFormat = SimpleDateFormat.getDateInstance(SimpleDateFormat.SHORT);
	
	BeanPropertyComparator comparator = new BeanPropertyComparator(propertiesD);
	
	D lesser = new D(dateFormat.parse("01/02/1990"));
	D greater = new D(null);
	
	int result = comparator.compare(greater, lesser);
	Assert.assertEquals(-1, result);
	
	result = comparator.compare(lesser, greater);
	Assert.assertEquals(1, result);
	
	result = comparator.compare(lesser, lesser);
	Assert.assertEquals(0, result);
	
	result = comparator.compare(greater, greater);
	Assert.assertEquals(0, result);
}