/** Creates the shop itself */
  public void createShop() {
    myShop = ShopFactory.eINSTANCE.createShop();

    myCountry1 = ShopFactory.eINSTANCE.createCountry();
    myCountry1.setName("n1");
    myCountry1.setAbbreviation("1");
    myShop.getCountries().add(myCountry1);

    myCountry2 = ShopFactory.eINSTANCE.createCountry();
    myCountry2.setName("n2");
    myCountry2.setAbbreviation("2");
    myShop.getCountries().add(myCountry2);

    myCountry3 = ShopFactory.eINSTANCE.createCountry();
    myCountry3.setName("n3");
    myCountry3.setAbbreviation("3");
    myShop.getCountries().add(myCountry3);

    myCountry4 = ShopFactory.eINSTANCE.createCountry();
    myCountry4.setName("n4");
    myCountry4.setAbbreviation("4");
    myShop.getCountries().add(myCountry4);

    myContact1 = ShopFactory.eINSTANCE.createContact();
    myContact1.setName("a");
    myContact1.setCountry(myCountry1);
    myShop.getContacts().add(myContact1);

    myContact2 = ShopFactory.eINSTANCE.createContact();
    myContact2.setName("b");
    myContact2.setCountry(myCountry2);
    myShop.getContacts().add(myContact2);
  }
  /** Source values for a column binding for a simple feature */
  @Test
  public void testROColumnBinding() {
    postMouse(myTable, 2 + myViewerBinding.getFirstTableColumnOffset(), 1);

    final IColumnBindingCellInformation ci =
        myViewerBinding.getCell(2, myViewerBinding.getList().get(1));
    assertNotNull(ci);

    assertSource(Constants.SOURCES_THE_MANAGER, IManager.Factory.getManager());

    assertSource(Constants.SOURCES_ACTIVE_CONTEXT, myContext);

    assertSource(Constants.SOURCES_ACTIVE_CONTAINER_BINDING, myViewerBinding);
    assertSource(Constants.SOURCES_ACTIVE_BINDING, ci.getLabelBinding());
    assertSource(Constants.SOURCES_ACTIVE_BINDING_RO, true);
    assertSource(
        Constants.SOURCES_ACTIVE_BINDING_FEATURE, IMOAOPackage.Literals.NAMED_OBJECT__NAME);
    assertSource(Constants.SOURCES_ACTIVE_BINDING_TYPE, "");
    assertSource(Constants.SOURCES_ACTIVE_BINDING_MODEL_OBJECT, myCountry2);
    assertSource(Constants.SOURCES_ACTIVE_BINDING_VALUE, myCountry2.getName());
    assertSource(Constants.SOURCES_ACTIVE_BINDING_VALUE_DISPLAY, myCountry2.getName());
  }
  /** Source values for a column binding for a reference feature */
  @Test
  public void testReferenceColumnBinding() {
    postMouse(myTable, 1 + myViewerBinding.getFirstTableColumnOffset(), 0);

    final IColumnBindingCellInformation ci =
        myViewerBinding.getCell(1, myViewerBinding.getList().get(0));
    assertNotNull(ci);

    assertSource(Constants.SOURCES_THE_MANAGER, IManager.Factory.getManager());

    assertSource(Constants.SOURCES_ACTIVE_CONTEXT, myContext);

    assertSource(Constants.SOURCES_ACTIVE_CONTAINER_BINDING, myViewerBinding);
    assertSource(Constants.SOURCES_ACTIVE_BINDING, ci.getLabelBinding());
    assertSource(Constants.SOURCES_ACTIVE_BINDING_RO, false);
    assertSource(Constants.SOURCES_ACTIVE_BINDING_FEATURE, ShopPackage.Literals.CONTACT__COUNTRY);
    assertSource(Constants.SOURCES_ACTIVE_BINDING_TYPE, "");
    assertSource(Constants.SOURCES_ACTIVE_BINDING_MODEL_OBJECT, myContact1);
    assertSource(Constants.SOURCES_ACTIVE_BINDING_VALUE, myCountry1);
    assertSource(Constants.SOURCES_ACTIVE_BINDING_VALUE_DISPLAY, myCountry1.getAbbreviation());
  }
  /** Creates the shop itself */
  public void createShop() {
    myShop = ShopFactory.eINSTANCE.createShop();

    Country c;

    c = ShopFactory.eINSTANCE.createCountry();
    c.setName("A");
    c.setAbbreviation("AA");
    myShop.getCountries().add(c);

    c = ShopFactory.eINSTANCE.createCountry();
    c.setName("2A");
    c.setAbbreviation("BarBar");
    myShop.getCountries().add(c);

    c = ShopFactory.eINSTANCE.createCountry();
    c.setName("C");
    c.setAbbreviation("CC");
    myShop.getCountries().add(c);
  }