@Test
public void getObjectPrimitiveByte() throws SQLException {

    Mockito.when(resultSet.getObject(1)).thenReturn((byte) 1);
    Mockito.when(resultSet.getByte(1)).thenReturn((byte) 1);
    Assert.assertTrue((byte) 1 == GenericDaoBase.getObject(byte.class,
            resultSet, 1));
    Mockito.verify(resultSet).getByte(1);
}