add.get("keep").set("here");
OperationTransformer.TransformedOperation transformedAdd = transformOperation(add);
Assert.assertFalse(transformedAdd.rejectOperation(success()));
Assert.assertTrue(transformedAdd.getTransformedOperation().hasDefined("keep"));
Assert.assertFalse(transformedAdd.getTransformedOperation().has("discard"));
<BUG>ModelNode write = Util.getWriteAttributeOperation(PathAddress.pathAddress(PATH), "discard", new ModelNode("nothing"));

OperationTransformer.TransformedOperation transformedWrite = transformOperation(write);
Assert.assertFalse(transformedWrite.rejectOperation(success()));</BUG>
}

add.get("keep").set("here");
OperationTransformer.TransformedOperation transformedAdd = transformOperation(add);
Assert.assertFalse(transformedAdd.rejectOperation(success()));
Assert.assertTrue(transformedAdd.getTransformedOperation().hasDefined("keep"));
Assert.assertFalse(transformedAdd.getTransformedOperation().has("discard"));
checkWriteOpDiscarded(Util.getWriteAttributeOperation(PathAddress.pathAddress(PATH), "discard", new ModelNode("nothing")));
}
