@Test(enabled = false) // not yet supported
  public void testRestoresEntityDependentConfigUncompleted() throws Exception {
    origApp.createAndManageChild(
        EntitySpec.create(MyEntity.class)
            .configure(
                "myconfig",
                DependentConfiguration.attributeWhenReady(origApp, TestApplication.MY_ATTRIBUTE)));

    newApp = rebind();
    MyEntity newE =
        (MyEntity) Iterables.find(newApp.getChildren(), Predicates.instanceOf(MyEntity.class));
    newApp.setAttribute(TestApplication.MY_ATTRIBUTE, "myval");

    assertEquals(newE.getConfig(MyEntity.MY_CONFIG), "myval");
  }
  @Test
  public void testRestoresEntityDependentConfigCompleted() throws Exception {
    MyEntity origE =
        origApp.createAndManageChild(
            EntitySpec.create(MyEntity.class)
                .configure(
                    "myconfig",
                    DependentConfiguration.attributeWhenReady(
                        origApp, TestApplication.MY_ATTRIBUTE)));
    origApp.setAttribute(TestApplication.MY_ATTRIBUTE, "myval");
    origE.getConfig(MyEntity.MY_CONFIG); // wait for it to be done

    newApp = rebind();
    MyEntity newE =
        (MyEntity) Iterables.find(newApp.getChildren(), Predicates.instanceOf(MyEntity.class));
    assertEquals(newE.getConfig(MyEntity.MY_CONFIG), "myval");
  }