@Override
public void doSetup(final ManagementClient managementClient) throws Exception {
String xml = FileUtils.readFile(BasicDoubleDeploymentFail16_2TestCase.class, "basic16.1-2.xml");
List<ModelNode> operations = xmlToModelOperations(xml, Namespace.RESOURCEADAPTERS_1_1.getUriString(),
new ResourceAdapterSubsystemParser());
executeOperation(operationListToCompositeOperation(operations));
xml = FileUtils.readFile(BasicDoubleDeploymentFail16_2TestCase.class, "basic16.1-3.xml");
operations = xmlToModelOperations(xml, Namespace.RESOURCEADAPTERS_1_1.getUriString(),
new ResourceAdapterSubsystemParser());
final ModelNode result = executeOperation(operationListToCompositeOperation(operations),false);
Assert.assertTrue(!Operations.isSuccessfulOutcome(result));
final String failureDescription = result.get("result").get("step-1").get("failure-description").asString();
Assert.assertTrue(failureDescription.startsWith("WFLYCTL0212: Duplicate resource"));