SfcGeniusRspWriter { public CompletableFuture<Void> createRsp(RenderedServicePath renderedServicePath) { InstanceIdentifier<RenderedServicePath> rspId = InstanceIdentifier.builder(RenderedServicePaths.class) .child(RenderedServicePath.class, renderedServicePath.getKey()) .build(); transaction.put(LogicalDatastoreType.OPERATIONAL, rspId, renderedServicePath); return CompletableFuture.completedFuture(null); } SfcGeniusRspWriter(WriteTransaction transaction); CompletableFuture<RenderedServicePath> deleteRsp(RenderedServicePath renderedServicePath); CompletableFuture<Void> createRsp(RenderedServicePath renderedServicePath);  }
@Test public void createRsp() throws Exception { InstanceIdentifier<RenderedServicePath> rspIID = InstanceIdentifier.builder(RenderedServicePaths.class) .child(RenderedServicePath.class, renderedServicePath.getKey()) .build(); sfcGeniusRspWriter.createRsp(renderedServicePath).get(); verify(writeTransaction).put(LogicalDatastoreType.OPERATIONAL, rspIID, renderedServicePath); }