Assert.assertEquals("my/resource/type", selector.getType());
}
@Test
public void parseResourceTypeAndNameAndProperties() {
SelectorSegment selector = getFirstSegment("my/resource/type#some-name[key=value][key2=value2]");
Assert.assertEquals(Arrays.asList(pp("key", "value"), pp("key2", "value2")), selector.getAttributes());
Assert.assertEquals("my/resource/type", selector.getType());
Assert.assertEquals("some-name", selector.getName());
}