SfcGeniusServiceHandler { CompletableFuture<Void> interfaceStateUp(String interfaceName, BigInteger nodeId) { SfcGeniusDpnIfWriter dpnIfWriter = getDpnIfWriter(); SfcGeniusTsaWriter tsaWriter = getTsaWriter(); return dpnIfWriter.addInterface(nodeId, interfaceName) .thenCompose(optionalNewDpn -> optionalNewDpn .map(tsaWriter::createTerminatingServiceAction) .orElse(CompletableFuture.completedFuture(null)) ); } SfcGeniusServiceHandler(Map<BigInteger, Set<String>> dpnInterfaces,
                            ReadWriteTransaction transaction,
                            RpcProviderRegistry rpcProviderRegistry,
                            Executor executor);   }
@Test public void interfaceStateUp() throws Exception { }