### Question:
GraphElementSchemaProviderJsonFactory implements GraphElementSchemaProviderFactory { @Override public GraphElementSchemaProvider get(Ontology ontology) { return new GraphElementSchemaProvider.Impl( getVertexSchemas(), getEdgeSchemas()); } @Inject  GraphElementSchemaProviderJsonFactory(Config config, IndexProviderIfc indexProvider, OntologyProvider ontologyProvider); @Override GraphElementSchemaProvider get(Ontology ontology); static final String KEYWORD; static final String TEXT; static final String _ID; static final String ID; static final String ENTITY_A; static final String ENTITY_A_ID; static final String ENTITY_B; static final String ENTITY_B_ID; static final String DIRECTION; static final String OUT; static final String IN; static final String STATIC; static final String TIME; static final String NESTED; }### Answer:
@Test public void testGraphElementSchemaProvider(){ GraphElementSchemaProviderJsonFactory jsonFactory = new GraphElementSchemaProviderJsonFactory(config, providerIfc,ontologyProvider); GraphElementSchemaProvider schemaProvider = jsonFactory.get(ontology); Assert.assertNotNull(schemaProvider); }
@Test public void testGraphElementSchemaProviderLabel(){ GraphElementSchemaProviderJsonFactory jsonFactory = new GraphElementSchemaProviderJsonFactory(config, providerIfc,ontologyProvider); GraphElementSchemaProvider schemaProvider = jsonFactory.get(ontology); Assert.assertNotNull(schemaProvider); Assert.assertEquals(StreamSupport.stream(schemaProvider.getEdgeLabels().spliterator(),false) .collect(Collectors.toSet()),new HashSet<>(Arrays.asList("HasProfession","Freeze","Fire","Own","SubjectOf","OriginatedIn","RegisteredIn","Know","MemberOf"))); Assert.assertEquals(StreamSupport.stream(schemaProvider.getVertexLabels().spliterator(),false) .collect(Collectors.toSet()),new HashSet<>(Arrays.asList("Horse","Guild","Person","Dragon","Kingdom","Profession"))); }