В Corda v4 , это может быть достигнуто следующим образом
private val network = MockNetwork(MockNetworkParameters(cordappsForAllNodes = listOf(
TestCordapp.findCordapp("com.template.contracts"),
TestCordapp.findCordapp("com.template.common")),
networkParameters = testNetworkParameters(minimumPlatformVersion = 4),
notarySpecs = listOf(MockNetworkNotarySpec(CordaX500Name.parse("O=Notary,L=London,C=GB")))))
private val party1 = network.createNode(MockNodeParameters(
additionalCordapps = listOf(TestCordapp.findCordapp("com.template.workflows.party1")),
legalName = CordaX500Name.parse("O=Party,L=London,C=GB")))