/** Tests removeGroup(Group group) method with accuracy state. */
  public void testRemoveGroupAccuracy() {
    assertEquals("removeGroup1 is wrong.", 0, editor.getScorecard().getNumberOfGroups());

    editor.addGroups(groups);

    List ss = Arrays.asList(editor.getScorecard().getAllGroups());
    assertTrue("removeGroup2 is wrong.", ss.indexOf(group1) != -1);
    assertTrue("removeGroup3 is wrong.", ss.indexOf(group2) != -1);

    editor.removeGroup(group2);

    List ss2 = Arrays.asList(editor.getScorecard().getAllGroups());
    assertEquals("removeGroup4 is wrong.", 1, ss2.size());
    assertTrue("removeGroup5 is wrong.", ss2.indexOf(group1) != -1);
    assertTrue("removeGroup6 is wrong.", ss2.indexOf(group2) == -1);
  }
  /** Tests removeGroup(int index) method with accuracy state. */
  public void testRemoveGroup2Accuracy() {
    assertEquals("getNumberOfGroups1 is wrong.", 0, editor.getScorecard().getNumberOfGroups());

    editor.addGroups(groups);

    Group group3 = new Group(123);
    editor.addGroup(group3);

    assertEquals("getNumberOfGroups2 is wrong.", 3, editor.getScorecard().getNumberOfGroups());

    editor.removeGroup(1);

    assertEquals("getNumberOfGroups2 is wrong.", 2, editor.getScorecard().getNumberOfGroups());

    List ss2 = Arrays.asList(editor.getScorecard().getAllGroups());
    assertTrue("getAllGroups5 is wrong.", ss2.indexOf(group1) != -1);
    assertTrue("getAllGroups6 is wrong.", ss2.indexOf(group3) != -1);
  }