Refactor and leverage factored out common code from TestInetLayerCommon.
Refactor and leverage factored out common code from TestInetLayerCommon.

openweave/openweave-core,openweave/openweave-core,openweave/openweave-core,openweave/openweave-core,openweave/openweave-core,openweave/openweave-core