// message Person {}
@Test public void should_find_resource_matching_segments_if_URIs_are_not_exact_match() {
XtextResource resource = xtext.resource();
addToXtextIndex(resource);
URI resourceUri = resource.getURI();
String[] segments = resourceUri.segments();
int segmentCount = segments.length;
String path = segments[segmentCount - 2] + "/" + segments[segmentCount - 1]; // last two segments.
IResourceDescription description = lookup.resourceIn(Path.fromOSString(path));
assertThat(description.getURI(), equalTo(resourceUri));
}