@Test
public void testgetResultIteratorwithnull() {

  Constraint myconstraint1 = createMock(Constraint.class); // iterator will be
                                                           // null
  Constraint myconstraint2 = createMock(Constraint.class); // iterator will be
                                                           // null
  TableAdapter table = createMock(TableAdapter.class);
  Or myor = new Or(myconstraint1, myconstraint2);
  boolean exceptionSiteIsMeaningful = false;
  try {
    myor.getResultIterator();
  } catch (NullPointerException e) {
    if (e.getMessage().contains(myconstraint1.toString())) {
      exceptionSiteIsMeaningful = true;
    }
  }
  assertTrue("Exception site should be meaninful", exceptionSiteIsMeaningful);
}