@Test
public void testParseDate() {

    Date actual = cachedResultSet.parseDate("2017-06-23");
    Calendar calendar = Calendar.getInstance();
    calendar.setTime(actual);
    assertEquals(2017, calendar.get(Calendar.YEAR));
    assertEquals(Calendar.JUNE, calendar.get(Calendar.MONTH));
    assertEquals(23, calendar.get(Calendar.DAY_OF_MONTH));
}