@Test
public void ltestRangelRangerPlusCostrStarRangelRangerStar() throws Exception {

    URIElement n1 = new URIElement();
    URIElement n2 = new URIElement();
    URIElement n3 = new URIElement();
    URIElement n4 = new URIElement();
    URIElement n5 = new URIElement();
    URIElement n6 = new URIElement();
    URIElement n7 = new URIElement();
    URIElement n8 = new URIElement();
    URIElement n9 = new URIElement();
    URIElement n10 = new URIElement(true);
    URIElement nn;
    int cost;
    n1.add(SKIP, n2);
    n1.add(SKIP, n5);
    for (int i = 0; i < 26; i++) {
        cost = 'a' + i;
        nn = new URIElement();
        n2.add(cost, nn);
        nn.add(SKIP, n3);
    }
    for (int i = 0; i < 26; i++) {
        cost = 'a' + i;
        nn = new URIElement();
        n3.add(cost, nn);
        nn.add(SKIP, n4);
    }
    n4.add(SKIP, n3);
    n4.add('.', n5);
    n5.add(SKIP, n2);
    n5.add(SKIP, n6);
    for (int i = 0; i < 26; i++) {
        cost = 'A' + i;
        nn = new URIElement();
        n6.add(cost, nn);
        nn.add(SKIP, n7);
    }
    n7.add(SKIP, n8);
    n7.add(SKIP, n9);
    for (int i = 0; i < 26; i++) {
        cost = 'A' + i;
        nn = new URIElement();
        n8.add(cost, nn);
        nn.add(SKIP, n9);
        cost = 'a' + i;
        nn = new URIElement();
        n8.add(cost, nn);
        nn.add(SKIP, n9);
    }
    n9.add(SKIP, n10);
    n9.add(SKIP, n8);
    assertTrue(new URIVerifier(n1).verify("A"));
    assertTrue(new URIVerifier(n1).verify("ac.A"));
    assertTrue(new URIVerifier(n1).verify("acc.A"));
    assertTrue(new URIVerifier(n1).verify("aaaaaa.A"));
    assertTrue(new URIVerifier(n1).verify("aaaaaa.aaaaaa.A"));
    assertTrue(new URIVerifier(n1).verify("aaaaaa.aaaaaa.aaaaaa.aaaaaa.aaaaaa.aaaaaa.A"));
    assertTrue(new URIVerifier(n1).verify("aaaaaa.aaaaaa.aaaaaa.aaaaaa.aaaaaa.aaaaaa.AA"));
    assertTrue(new URIVerifier(n1).verify("aaaaaa.aaaaaa.aaaaaa.aaaaaa.aaaaaa.aaaaaa.Aaaaa"));
    assertTrue(new URIVerifier(n1).verify("stac.de.bbn.Com"));
    assertFalse(new URIVerifier(n1).verify("aaaaaa.aaaaaa"));
    assertFalse(new URIVerifier(n1).verify(String.valueOf('A' - 1)));
}