@Test(expected = IllegalArgumentException.class)
public void buildReferenceWithEntitySet() {

  EdmEntitySet entitySet = mock(EdmEntitySet.class);
  when(entitySet.getName()).thenReturn("Customers");
  ContextURLBuilder.create(ContextURL.with().entitySet(entitySet).suffix(Suffix.REFERENCE).build());
}