operation.get(OP_ADDR).add(SUBSYSTEM, JPAExtension.SUBSYSTEM_NAME);
operation.get(NAME).set(JPADefinition.DEFAULT_DATASOURCE.getName());
operation.get(VALUE).set("${org.jboss.as.jpa.testBadExpr}");
final ModelNode mainResult = mainServices.executeOperation(operation);
System.out.println(mainResult);
<BUG>Assert.assertTrue(SUCCESS.equals(mainResult.get(OUTCOME).asString()));
try {
mainServices.transformOperation(oldVersion, operation);
Assert.fail("should reject the expression");
} catch (OperationFailedException e) {
}</BUG>
} finally {

operation.get(OP_ADDR).add(SUBSYSTEM, JPAExtension.SUBSYSTEM_NAME);
operation.get(NAME).set(JPADefinition.DEFAULT_DATASOURCE.getName());
operation.get(VALUE).set("${org.jboss.as.jpa.testBadExpr}");
final ModelNode mainResult = mainServices.executeOperation(operation);
System.out.println(mainResult);
Assert.assertTrue(SUCCESS.equals(mainResult.get(OUTCOME).asString()));
final OperationTransformer.TransformedOperation op = mainServices.transformOperation(oldVersion, operation);
final ModelNode result = mainServices.executeOperation(oldVersion, op);
Assert.assertEquals(FAILED, result.get(OUTCOME).asString());
} finally {
