### Question:
CgmesDLImportPostProcessor implements CgmesImportPostProcessor { @Override public void process(Network network, TripleStore tripleStore) { if (isDlProfileAvailable(network, tripleStore)) { LOG.info("Execute {} CGMES import post processor on network {}", getName(), network.getId()); CgmesDLModel cgmesDLModel = new CgmesDLModel(tripleStore, queryCatalog); new CgmesDLImporter(network, cgmesDLModel).importDLData(); } else { LOG.info("DL profile not found for network {}", network.getId()); } } CgmesDLImportPostProcessor(QueryCatalog queryCatalog);  CgmesDLImportPostProcessor(); @Override String getName(); @Override void process(Network network, TripleStore tripleStore);  }### Answer:
@Test public void process() throws Exception { Network network = Networks.createNetworkWithBusbar(); new CgmesDLImportPostProcessor(queryCatalog).process(network, tripleStore); BusbarSection busbar = network.getBusbarSection("Busbar"); NodeDiagramData<BusbarSection> busDiagramData = busbar.getExtension(NodeDiagramData.class); assertNotNull(busDiagramData); assertNotNull(busDiagramData.getData(DEFAULT_DIAGRAM_NAME)); NodeDiagramData.NodeDiagramDataDetails nodeDiagramDataDetails = busDiagramData.getData(DEFAULT_DIAGRAM_NAME); assertEquals(1, nodeDiagramDataDetails.getPoint1().getSeq(), 0); assertEquals(20, nodeDiagramDataDetails.getPoint1().getX(), 0); assertEquals(5, nodeDiagramDataDetails.getPoint1().getY(), 0); assertEquals(2, nodeDiagramDataDetails.getPoint2().getSeq(), 0); assertEquals(20, nodeDiagramDataDetails.getPoint2().getX(), 0); assertEquals(40, nodeDiagramDataDetails.getPoint2().getY(), 0); }
@Test public void processNoDlContext() { Network network = Networks.createNetworkWithBusbar(); Mockito.when(tripleStore.contextNames()).thenReturn(new HashSet<>(Arrays.asList("Network_EQ.xml", "Network_SV.xml", "Network_TP.xml"))); new CgmesDLImportPostProcessor(queryCatalog).process(network, tripleStore); assertNull(network.getBusbarSection("Busbar").getExtension(NodeDiagramData.class)); }