@Test
public void testParse() {

    String name = "/media/aap/[1..100]";
    NameParser parser = new NameParser();
    Collection<NameToken> tokens = parser.parse(name);
    assertEquals(3, tokens.size());
    
    Iterator<NameToken> it = tokens.iterator();
    NameToken t = it.next();
    
    assertEquals(true, t instanceof FixedToken);
    
    t = it.next();
    assertEquals(true, t instanceof FixedToken);
    
    t = it.next();
    assertEquals(true, t instanceof NumericRange);
}