/**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case Bpmn2Package.CORRELATION_PROPERTY__CORRELATION_PROPERTY_RETRIEVAL_EXPRESSION:
       getCorrelationPropertyRetrievalExpression().clear();
       return;
     case Bpmn2Package.CORRELATION_PROPERTY__NAME:
       setName(NAME_EDEFAULT);
       return;
     case Bpmn2Package.CORRELATION_PROPERTY__TYPE:
       setType((ItemDefinition) null);
       return;
   }
   super.eUnset(featureID);
 }
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case Bpmn2Package.CORRELATION_PROPERTY__CORRELATION_PROPERTY_RETRIEVAL_EXPRESSION:
       getCorrelationPropertyRetrievalExpression().clear();
       getCorrelationPropertyRetrievalExpression()
           .addAll((Collection<? extends CorrelationPropertyRetrievalExpression>) newValue);
       return;
     case Bpmn2Package.CORRELATION_PROPERTY__NAME:
       setName((String) newValue);
       return;
     case Bpmn2Package.CORRELATION_PROPERTY__TYPE:
       setType((ItemDefinition) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }
 public void testGetNullNamespace() {
   assertEquals(
       "These names should match", "", nullRootElem.getNamespace()); // $NON-NLS-1$ //$NON-NLS-2$
 }
 /*
  * Test method for 'com.metamatrix.modeler.schema.tools.model.schema.impl.RootElementImpl.getNamespace()'
  */
 public void testGetNamespace() {
   assertEquals("These names should match", namespace, rootElem.getNamespace()); // $NON-NLS-1$
 }
 /*
  * Test method for 'com.metamatrix.modeler.schema.tools.model.schema.impl.RootElementImpl.getKey()'
  */
 public void testGetKey() {
   assertEquals("These objects should be equal", mock, rootElem.getKey()); // $NON-NLS-1$
 }
  /*
   * Test method for 'com.metamatrix.modeler.schema.tools.model.schema.impl.RootElementImpl.isUseAsRoot()'
   */
  public void testIsUseAsRoot() {

    assertFalse("This RootElement should not be a root", rootElem.isUseAsRoot()); // $NON-NLS-1$
    assertTrue("This RootElement should be a root", nullRootElem.isUseAsRoot()); // $NON-NLS-1$
  }
 /*
  * Test method for 'com.metamatrix.modeler.schema.tools.model.schema.impl.RootElementImpl.toString()'
  */
 public void testToString() {
   String result = name + " (" + namespace + ')'; // $NON-NLS-1$
   assertTrue(
       "These strings should be the same", result.equals(rootElem.toString())); // $NON-NLS-1$
 }