public ORidBagTest(@org.testng.annotations.Optional String url) {
super(url);
}
public void testAdd() throws Exception {
ORidBag bag = new ORidBag();
bag.setAutoConvertToRecord(false);
bag.add(new ORecordId("#77:1"));
Iterator<OIdentifiable> iterator = bag.iterator();
Assert.assertTrue(iterator.hasNext());
OIdentifiable identifiable = iterator.next();
Assert.assertEquals(identifiable, new ORecordId("#77:1"));
Assert.assertTrue(!iterator.hasNext());
assertEmbedded(bag.isEmbedded());
}