add.get("old").set("value");
OperationTransformer.TransformedOperation transformedAdd = transformOperation(add);
Assert.assertFalse(transformedAdd.rejectOperation(success()));
Assert.assertFalse(transformedAdd.getTransformedOperation().hasDefined("old"));
Assert.assertEquals("value", transformedAdd.getTransformedOperation().get("new").asString());
<BUG>ModelNode write = Util.getWriteAttributeOperation(PathAddress.pathAddress(PATH), "old", new ModelNode("value"));

OperationTransformer.TransformedOperation transformedWrite = transformOperation(write);
Assert.assertFalse(transformedWrite.rejectOperation(success()));
Assert.assertEquals("new", transformedWrite.getTransformedOperation().get(NAME));
Assert.assertEquals("value", transformedWrite.getTransformedOperation().get(VALUE));</BUG>
}

add.get("old").set("value");
OperationTransformer.TransformedOperation transformedAdd = transformOperation(add);
Assert.assertFalse(transformedAdd.rejectOperation(success()));
Assert.assertFalse(transformedAdd.getTransformedOperation().hasDefined("old"));
Assert.assertEquals("value", transformedAdd.getTransformedOperation().get("new").asString());
checkWriteOp(Util.getWriteAttributeOperation(PathAddress.pathAddress(PATH), "old", new ModelNode("value")),
"new", new ModelNode("value"));
}
