@Test
public void getObjectLong() throws SQLException {

    Mockito.when(resultSet.getObject(1)).thenReturn(1l);
    Mockito.when(resultSet.getLong(1)).thenReturn(1l);
    Assert.assertEquals((Long) 1l,
            GenericDaoBase.getObject(Long.class, resultSet, 1));
    Mockito.verify(resultSet).getLong(1);
}