@Test
public void assertGetValueByBigint() throws SQLException {

    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.BIGINT);
    when(resultSet.getLong(1)).thenReturn(Long.MAX_VALUE);
    assertThat((long) QueryResultUtil.getValue(resultSet, 1), is(Long.MAX_VALUE));
}