@Test
public void assertGetValueByTime() throws SQLException {

    long currentTime = System.currentTimeMillis();
    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.TIME);
    when(resultSet.getTime(1)).thenReturn(new Time(currentTime));
    assertThat((Time) QueryResultUtil.getValue(resultSet, 1), is(new Time(currentTime)));
}