@Test
public void testAssociation() throws XMLStreamException, EntityProviderException {
XmlMetadataConsumer parser = new XmlMetadataConsumer();
XMLStreamReader reader = createStreamReader(xmlWithAssociation);
DataServices result = parser.readMetadata(reader, true);
assertEquals("2.0", result.getDataServiceVersion());
for (Schema schema : result.getSchemas()) {
for (EntityType entityType : schema.getEntityTypes()) {
if ("Manager".equals(entityType.getName())) {
assertEquals("RefScenario", entityType.getBaseType().getNamespace());
assertEquals("Employee", entityType.getBaseType().getName());
for (NavigationProperty navProperty : entityType.getNavigationProperties()) {