/** Test the comparison of two equivalent fragments */
 public void testCompareFragmentsWithDifferentNumbersOfPrecedingSiblings() {
   try {
     logger.info(f1.getIndex() + f3.getIndex());
     logger.info(f1.getURI() + " " + f3.getURI());
     logger.info(comparator.compare(f1, f3));
     assertTrue(this.comparator.compare(f1, f3) < 0);
   } catch (Exception e) {
     e.printStackTrace();
     fail("Unexpected exception.");
   }
 }
  /*
   * @see TestCase#setUp()
   */
  protected void setUp() throws Exception {
    super.setUp();

    comparator = new FragmentComparator();

    try {
      f1 = new MockImpl("10");
      f1.setURI(new URI("http://uriA/"));
      f1.setSequenceToParentElement("");
      f1.setParentIndex("1");

      f2 = new MockImpl("10");
      f2.setURI(new URI("http://uriA/"));
      f2.setSequenceToParentElement("");
      f2.setParentIndex("1");

      f3 = new MockImpl("12");
      f3.setURI(new URI("http://uriA/"));
      f3.setSequenceToParentElement("");
      f3.setParentIndex("1");

      f4 = new MockImpl("13");
      f4.setURI(new URI("http://uriA/"));
      f4.setSequenceToParentElement("");
      f4.setParentIndex("2");

      f5 = new MockImpl("14");
      f5.setURI(new URI("http://uriA/"));
      f5.setSequenceToParentElement("68 2");
      f5.setParentIndex("1");

      f6 = new MockImpl("15");
      f6.setURI(new URI("http://uriB/"));
      f6.setSequenceToParentElement("");
      f6.setParentIndex("1");

    } catch (URISyntaxException e) {
      fail("URI syntax is invalid.");
    }
  }