@Test
public void test() throws XMLStreamException, EntityProviderException {
int i = 0;
XmlMetadataConsumer parser = new XmlMetadataConsumer();
XMLStreamReader reader = createStreamReader(xml);
DataServices result = parser.readMetadata(reader, true);
assertEquals("2.0", result.getDataServiceVersion());
for (Schema schema : result.getSchemas()) {
assertEquals(NAMESPACE, schema.getNamespace());
assertEquals(1, schema.getEntityTypes().size());
assertEquals("Employee", schema.getEntityTypes().get(0).getName());
assertEquals(Boolean.TRUE, schema.getEntityTypes().get(0).isHasStream());
for (PropertyRef propertyRef : schema.getEntityTypes().get(0).getKey().getKeys()) {