@Test
public void testTransactionForBadOps() throws Exception
{

    CuratorOp op1 = client.transactionOp().create().forPath("/test2", "something".getBytes());
    CuratorOp op2 = client.transactionOp().create().forPath("/a/b/c/d");
    Migration migration = () -> Arrays.asList(op1, op2);
    MigrationSet migrationSet = MigrationSet.build("1", Collections.singletonList(migration));
    try
    {
        complete(manager.migrate(migrationSet));
        Assert.fail("Should throw");
    }
    catch ( Throwable e )
    {
        Assert.assertTrue(Throwables.getRootCause(e) instanceof KeeperException.NoNodeException);
    }
    Assert.assertNull(client.unwrap().checkExists().forPath("/test"));
}