public void test_addComposite() throws Exception {
    initNoRole();

    WindowInterceptor.init(getMainPanel().getButton("addCompositeButton").triggerClick())
        .process(
            BasicHandler.init()
                .assertContainsText("Nom du rôle composite:")
                .setText("  composite_A  ")
                .triggerButtonClick("OK"))
        .run();

    assertTrue(getCompositeList().contentEquals(new String[] {"composite_A"}));
  }
  public void test_removeComposite_usedInComposite() throws Exception {

    roleTab =
        create(
            new ModelBuilder()
                .addRoleComposite("composite_B")
                .addRoleComposite("composite_A", "composite_B"));

    getCompositeList().select("composite_B");

    WindowInterceptor.init(getMainPanel().getButton("removeCompositeButton").triggerClick())
        .process(
            BasicHandler.init()
                .assertContainsText("Ce rôle est affecté à:")
                .assertContainsText("  * 1 rôle(s) : composite_A")
                .assertContainsText("Voulez-vous vraiment le supprimer ?")
                .triggerButtonClick("OK"))
        .run();

    assertTrue(getCompositeList().contentEquals(new String[] {"composite_A"}));
  }