public void testInvalidDate() throws Exception { try { DateUtils.getDate("20/20/2000"); fail("Invalid date '20/20/2000' passed"); } catch (FrameworkRuntimeException e) { Assert.assertTrue(e.getCause() instanceof ParseException); } }