@Test
public void getObjectPrimitiveInt() throws SQLException {

    Mockito.when(resultSet.getObject(1)).thenReturn(1l);
    Mockito.when(resultSet.getInt(1)).thenReturn(1);
    Assert.assertEquals((Integer) 1,
            GenericDaoBase.getObject(int.class, resultSet, 1));
    Mockito.verify(resultSet).getInt(1);
}