@Test
public void testChecksumPathError()
{

    CuratorOp op1 = client.transactionOp().create().forPath("/test2");
    CuratorOp op2 = client.transactionOp().create().forPath("/test2/bar");
    Migration migration = () -> Arrays.asList(op1, op2);
    MigrationSet migrationSet = MigrationSet.build("1", Collections.singletonList(migration));
    complete(manager.migrate(migrationSet));
    CuratorOp op2Changed = client.transactionOp().create().forPath("/test/bar");
    migration = () -> Arrays.asList(op1, op2Changed);
    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 MigrationException);
    }
}