components/src/test/java/eu/internetofus/common/components/models/SocialPracticeTest.java
/**
   * Check that is valid a model with a material that has the same name but has
   * different classification.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see SocialPractice#validate(WeNetValidateContext)
   */
Check that is valid a model with a material that has the same name but has
different classification.

@param vertx       event bus to use.
@param testContext test context to use.


Check that is valid a model with a material that has the same name but has different classification . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldBeValidWithAMaterialWithTheSameNameButDiferentClassification(final Vertx vertx,
      final VertxTestContext testContext) {
    final var model = this.createModelExample(1);
    model.materials.add(Model.fromJsonObject(model.materials.get(0).toJsonObject(), Material.class));
    model.materials.get(model.materials.size() - 1).classification = "OtherClassification";
    assertIsValid(model, new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ Test public void shouldBeValidWithAMaterialWithTheSameNameButDiferentClassification ( final Vertx vertx , final VertxTestContext testContext ) { final var model = this . createModelExample ( 1 ) ; model . materials . add ( Model . fromJsonObject ( model . materials . get ( 0 ) . toJsonObject ( ) , Material . class ) ) ; model . materials . get ( model . materials . size ( ) - 1 ) . classification = "OtherClassification" ; assertIsValid ( model , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that is valid a model with a material that has the same name but has
 different classification.
Check that is valid a model with a material that has the same name but has different classification .