@Test public void test() throws EntityProviderException { JsonServiceDocumentConsumer parser = new JsonServiceDocumentConsumer(); InputStream in = ClassLoader.class.getResourceAsStream("/svcDocJson.json"); ServiceDocument serviceDoc = parser.parseJson(in); List<EdmEntitySetInfo> entitySetsInfo = serviceDoc.getEntitySetsInfo(); assertNotNull(entitySetsInfo); assertEquals(7, entitySetsInfo.size()); for (EdmEntitySetInfo entitySetInfo : entitySetsInfo) { if (!entitySetInfo.isDefaultEntityContainer()) { if ("Container2".equals(entitySetInfo.getEntityContainerName())) { assertEquals("Photos", entitySetInfo.getEntitySetName()); } else if ("Container.Nr1".equals(entitySetInfo.getEntityContainerName())) { assertEquals("Employees", entitySetInfo.getEntitySetName()); } else { fail(); } } } }
public ServiceDocumentImpl parseJson(final InputStream in) throws EntityProviderException { return readServiceDocument(createJsonReader(in)); }
JsonServiceDocumentConsumer { public ServiceDocumentImpl parseJson(final InputStream in) throws EntityProviderException { return readServiceDocument(createJsonReader(in)); } }
JsonServiceDocumentConsumer { public ServiceDocumentImpl parseJson(final InputStream in) throws EntityProviderException { return readServiceDocument(createJsonReader(in)); }  }
JsonServiceDocumentConsumer { public ServiceDocumentImpl parseJson(final InputStream in) throws EntityProviderException { return readServiceDocument(createJsonReader(in)); }  ServiceDocumentImpl parseJson(final InputStream in); }
JsonServiceDocumentConsumer { public ServiceDocumentImpl parseJson(final InputStream in) throws EntityProviderException { return readServiceDocument(createJsonReader(in)); }  ServiceDocumentImpl parseJson(final InputStream in);  }