updateModel(modelName, model, false);
fail("Shouldn't be able to update a custom model with an empty namespace.");
updateModel(modelName, model, false);
fail("Model validation should have failed, as the namespace prefix is null.");
updateModel(modelName, model, false);
fail("Shouldn't be able to add more than one namespace URI into a custom model.");
updateModel(modelName, model, false);
fail("Shouldn't be able to update a model with an already in-use namespace URI.");
updateModel(modelName, model, false);
fail("Shouldn't be able to update a model with an already in-use namespace Prefix.");
updateModel(modelName + "non-existing model", model, false);
fail("Should have thrown ModelDoesNotExistException.");
modelDefinition = updateModel(modelName, model, false);
namespaceDefinition = modelDefinition.getNamespaces().iterator().next();
assertEquals(newNamespacePair.getFirst(), namespaceDefinition.getUri());
updateModel(modelName, model, true);
fail("Shouldn't be able to update the namespace URI of an active model.");
updateModel(modelName, model, true);
fail("Shouldn't be able to update the namespace prefix of an active model.");
updateModel(modelName, model, true);