Use ProcessVariableCollector to retrieve the NETWORK ID value as needed:

https://github.com/axemblr/axemblr-provisionr/blob/master/test-support/src/main/java/com/axemblr/provisionr/test/ProcessVariablesCollector.java