@Test
public void assertGetValueByDate() throws SQLException {

    long currentTime = System.currentTimeMillis();
    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.DATE);
    when(resultSet.getDate(1)).thenReturn(new Date(currentTime));
    assertThat((Date) QueryResultUtil.getValue(resultSet, 1), is(new Date(currentTime)));
}