public class StatementHelperTest {
@Test(expected = SQLException.class)
public void testSetValueNullParameter() throws SQLException {
StatementHelper helper = new StatementHelper();
helper.addParameterValue(null, Object.class);
PreparedStatement statement = EasyMock
.createMock(PreparedStatement.class);
// should throw SQLException, not NPE
helper.setParameterValuesToStatement(statement);
}