@Test
public void assertGetValueByFloat() throws SQLException {

    when(resultSetMetaData.getColumnType(1)).thenReturn(Types.FLOAT);
    when(resultSet.getDouble(1)).thenReturn(Double.MAX_VALUE);
    assertThat((double) QueryResultUtil.getValue(resultSet, 1), is(Double.MAX_VALUE));
}