public NodeRef execute() throws Exception
{
String uri = namespaceService.getNamespaceURI("test2");
assertNotNull(uri);
Collection<ConstraintDefinition> constraints = dictionaryService.getConstraints(TEST_MODEL_TWO, true);
assertEquals(1, constraints.size());
assertEquals("test2:con1", constraints.iterator().next().getName().getPrefixString());
NodeRef workingCopy = DictionaryModelTypeTest.this.cociService.checkout(modelNode);
ContentWriter contentWriter2 = DictionaryModelTypeTest.this.contentService.getWriter(workingCopy, ContentModel.PROP_CONTENT, true);
contentWriter2.putContent(MODEL_TWO_INVALID_XML);
return workingCopy;
}
});