Assert.assertEquals(Arrays.asList(f("first", null), f("eq", "12")), selector.getModifiers());
}
@Test
public void parseResourceTypeAndPropertiesAndFunctions() {
SelectorSegment selector = getFirstSegment("my/resource/type[key=value][key2=value2]:first:eq(12)");
Assert.assertEquals("my/resource/type", selector.getType());
Assert.assertEquals(Arrays.asList(pp("key", "value"), pp("key2", "value2")), selector.getAttributes());
Assert.assertEquals(Arrays.asList(f("first", null), f("eq", "12")), selector.getModifiers());
}