ResultSetImpl rs = Mockito.mock(ResultSetImpl.class);
mmcs.resultSet = rs;
Mockito.stub(rs.getOutputParamValue(1)).toReturn(null);
Mockito.stub(rs.getOutputParamValue(2)).toReturn(Boolean.TRUE);
mmcs.getBoolean(1);
assertTrue(mmcs.wasNull());
assertTrue(mmcs.getBoolean(2));
assertFalse(mmcs.wasNull());
}
public void testGetOutputParameter() throws Exception {