@Test
public void singleton() {

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