@Test
public void collectionOfEntities() {

  ContextURL contextURL = ContextURLParser.parse(URI.create("http://host/service/$metadata#Customers"));
  assertEquals(URI.create("http://host/service/"), contextURL.getServiceRoot());
  assertEquals("Customers", contextURL.getEntitySetOrSingletonOrType());
  assertNull(contextURL.getDerivedEntity());
  assertNull(contextURL.getSelectList());
  assertNull(contextURL.getNavOrPropertyPath());
  assertFalse(contextURL.isEntity());
  contextURL = ContextURLParser.parse(URI.create("http://host/service/$metadata#Orders(4711)/Items"));
  assertEquals("Orders", contextURL.getEntitySetOrSingletonOrType());
  assertNull(contextURL.getDerivedEntity());
  assertNull(contextURL.getSelectList());
  assertEquals("Items", contextURL.getNavOrPropertyPath());
  assertFalse(contextURL.isEntity());
  contextURL = ContextURLParser.parse(URI.create("http://host/service/$metadata#Me/Folders('Inbox')/Messages"));
  assertEquals("Me/Folders", contextURL.getEntitySetOrSingletonOrType());
  assertEquals("Messages", contextURL.getNavOrPropertyPath());
}