@Test
public void projectedEntity() {

  ContextURL contextURL = ContextURLParser.parse(
      URI.create("http://host/service/$metadata#Customers(Name,Rating)/$entity"));
  assertEquals("Customers", contextURL.getEntitySetOrSingletonOrType());
  assertNull(contextURL.getDerivedEntity());
  assertEquals("Name,Rating", contextURL.getSelectList());
  assertNull(contextURL.getNavOrPropertyPath());
  assertTrue(contextURL.isEntity());
  contextURL = ContextURLParser.parse(
      URI.create("http://host/service/$metadata#Customers(Name,Address/Country)"));
  assertEquals("Customers", contextURL.getEntitySetOrSingletonOrType());
  assertNull(contextURL.getDerivedEntity());
  assertEquals("Name,Address/Country", contextURL.getSelectList());
  assertNull(contextURL.getNavOrPropertyPath());
  assertFalse(contextURL.isEntity());
}