@Test
public void getObjectPrimitiveFloat() throws SQLException {

    Mockito.when(resultSet.getObject(1)).thenReturn(0.1f);
    Mockito.when(resultSet.getFloat(1)).thenReturn(0.1f);
    Assert.assertEquals(0.1f,
            GenericDaoBase.getObject(float.class, resultSet, 1), 0.1);
    Mockito.verify(resultSet).getFloat(1);
}