/**
   * Test method for {@link
   * org.eclipse.papyrus.layers.stackmodel.layers.impl.CustomPropertyOperatorImpl#getOperatorInstance()}.
   */
  @Test
  public void testGetOperatorInstance() {
    CustomPropertyOperator operator = LayersFactory.eINSTANCE.createCustomPropertyOperator();

    CustomPropertyOperatorsInstance opInstance = new BooleanAndOperator();
    operator.setOperatorInstance(opInstance);

    // Check
    assertSame("custom op found", opInstance, operator.getOperatorInstance());
  }
  /**
   * Test method for {@link
   * org.eclipse.papyrus.layers.stackmodel.layers.impl.CustomPropertyOperatorImpl#getOperatorInstance()}.
   */
  @Test
  public void testGetOperatorInstanceFromClassname() {
    CustomPropertyOperator operator = LayersFactory.eINSTANCE.createCustomPropertyOperator();

    // Set a classname
    operator.setClassname(BooleanAndOperator.class.getName());

    // Check
    assertNotNull("custom op created and found", operator.getOperatorInstance());
  }
  /**
   * Test method for {@link
   * org.eclipse.papyrus.layers.stackmodel.layers.impl.CustomPropertyOperatorImpl#setClassname(java.lang.String)}.
   */
  @Test
  public void testSetClassname() {
    CustomPropertyOperator operator = LayersFactory.eINSTANCE.createCustomPropertyOperator();

    // Set a classname
    String classname = BooleanAndOperator.class.getName();
    operator.setClassname(classname);

    // check
    assertSame("classname found", classname, operator.getClassname());
  }
  /**
   * Test method for {@link
   * org.eclipse.papyrus.layers.stackmodel.layers.impl.CustomPropertyOperatorImpl#getComputePropertyValueCommand(org.eclipse.emf.common.util.EList)}.
   *
   * @throws LayersException
   */
  @Test
  public void testGetComputePropertyValueCommand() throws LayersException {
    CustomPropertyOperator operator = LayersFactory.eINSTANCE.createCustomPropertyOperator();

    FakePropertyOperator opInstance = new FakePropertyOperator();
    operator.setOperatorInstance(opInstance);

    // Check
    operator.getComputePropertyValueCommand(null);
    // Check if the corresponding method of the custom operator is called.
    assertTrue("custom op getCmd method is called", opInstance.isComputePropertyValueCommandCalled);
  }