@Test
public void testGetAsText() throws Throwable {

    String dateStr = "01/03/2013";
    Date expectedDate = new SimpleDateFormat("MM/dd/yy").parse(dateStr);
    TestBean tb = new TestBean();
    tb.setDateProp(expectedDate);
    assertEquals("01/03/13", ObjectPropertyUtils.getPropertyValueAsText(tb, "dateProp"));
}