### Question:
TinkerPopOperationsForMigrations { static Vres getVres(TinkerPopGraphManager graphManager) { try (TinkerPopOperations dataStoreOperations = new TinkerPopOperations(graphManager)) { return dataStoreOperations.loadVres(); } }    }### Answer:
@Test public void itLoadsTheConfigurationsFromAGraph() throws JsonProcessingException { final HashMap<String, String> keywordTypes = new HashMap<>(); keywordTypes.put("key", "value"); final String keywordTypesJson = new ObjectMapper().writeValueAsString(keywordTypes); final TinkerPopGraphManager graphManager = newGraph() .withVertex("documents", v -> v.withProperty(Collection.COLLECTION_NAME_PROPERTY_NAME, "documents") .withProperty(Collection.ENTITY_TYPE_NAME_PROPERTY_NAME, "document") .withProperty(Collection.IS_RELATION_COLLECTION_PROPERTY_NAME, false) ) .withVertex(v -> v.withLabel(Vre.DATABASE_LABEL) .withProperty(Vre.VRE_NAME_PROPERTY_NAME, "VreA") .withProperty(Vre.KEYWORD_TYPES_PROPERTY_NAME, keywordTypesJson) .withOutgoingRelation(Vre.HAS_COLLECTION_RELATION_NAME, "documents") ) .wrap(); Vres instance = getVres(graphManager); assertThat(instance.getVre("VreA"), instanceOf(Vre.class)); assertThat(instance.getCollection("documents").get(), instanceOf(Collection.class)); assertThat(instance.getCollectionForType("document").get(), instanceOf(Collection.class)); assertThat(instance.getVres().get("VreA"), instanceOf(Vre.class)); }