/** Tests the programmatically adding of multiple elements to the list. */
 public void testAddMultiple() throws Exception {
   Object[] suppliers = new Object[NO_OF_ELEMENTS];
   Object[] dependencies = new Object[NO_OF_ELEMENTS];
   for (int i = 0; i < NO_OF_ELEMENTS; i++) {
     suppliers[i] = Model.getCoreFactory().buildClass(ns);
     dependencies[i] = Model.getCoreFactory().buildDependency(elem, suppliers[i]);
   }
   ThreadHelper.synchronize();
   assertEquals(NO_OF_ELEMENTS, model.getSize());
   assertEquals(model.getElementAt(NO_OF_ELEMENTS / 2), dependencies[NO_OF_ELEMENTS / 2]);
   assertEquals(model.getElementAt(0), dependencies[0]);
   assertEquals(model.getElementAt(NO_OF_ELEMENTS - 1), dependencies[NO_OF_ELEMENTS - 1]);
 }
 /*
  * @see junit.framework.TestCase#setUp()
  */
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   InitializeModel.initializeDefault();
   ns = Model.getModelManagementFactory().createModel();
   elem = Model.getCoreFactory().buildClass(ns);
   model = new UMLModelElementClientDependencyListModel();
   model.setTarget(elem);
   ThreadHelper.synchronize();
 }