@Test
public void complexOrPrimitiveType() {

  ContextURL contextURL = ContextURLParser.parse(URI.create("http://host/service/$metadata#Edm.String"));
  assertEquals("Edm.String", contextURL.getEntitySetOrSingletonOrType());
  assertNull(contextURL.getDerivedEntity());
  assertNull(contextURL.getSelectList());
  assertNull(contextURL.getNavOrPropertyPath());
  assertFalse(contextURL.isEntity());
  contextURL = ContextURLParser.parse(URI.create("http://host/service/$metadata#ODataDemo.Address"));
  assertEquals("ODataDemo.Address", contextURL.getEntitySetOrSingletonOrType());
  assertNull(contextURL.getDerivedEntity());
  assertNull(contextURL.getSelectList());
  assertNull(contextURL.getNavOrPropertyPath());
  assertFalse(contextURL.isEntity());
}