Ejemplo n.º 1
0
  @Test
  public void testCanCustomizeRebind() throws Exception {
    MyEntity2 origE =
        origApp.createAndManageChild(
            EntitySpec.create(MyEntity2.class).configure("myfield", "myval"));

    newApp = rebind();

    MyEntity2 newE =
        (MyEntity2) Iterables.find(newApp.getChildren(), Predicates.instanceOf(MyEntity2.class));
    assertEquals(newE.getMyfield(), "myval");
    Assert.assertEquals(newE, origE);
  }