public void test_update_disable() throws Exception {
    JTextField source = new JTextField();
    context.setGuiComponent(GuiComponentFactory.newGuiComponent(source));

    assertTree.update();

    assertFalse("Assert disable", assertTree.isEnabled());
  }
  public void test_update_enable() throws Exception {
    JTree source = buildJTree(new TreePath("root"), "treeName");

    context.setGuiComponent(GuiComponentFactory.newGuiComponent(source));
    context.setPoint(new Point(1, 1));

    assertTree.update();

    assertTrue("Assert ensable", assertTree.isEnabled());
  }
  public void test_update_disabled_noNode() throws Exception {
    JTree source = buildJTree(null, "treeName");

    context.setGuiComponent(GuiComponentFactory.newGuiComponent(source));
    context.setPoint(new Point(1, 1));

    assertTree.update();

    assertFalse("Assert disable", assertTree.isEnabled());
  }