@Test
public void assertGetValueByTimestamp() throws SQLException {

    long currentTime = System.currentTimeMillis();
    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.TIMESTAMP);
    when(resultSet.getTimestamp(1)).thenReturn(new Timestamp(currentTime));
    assertThat((Timestamp) QueryResultUtil.getValue(resultSet, 1), is(new Timestamp(currentTime)));
}