socketOrders property
The contributions of every socket that got any, in the order that the pipeline rendered them into the tags of the socket: those of the modules and of the templates of the roles, and the fragments of their render hooks, which the socket orders of stage 5 do not have yet.
So a test reads what the provider of a role renders into the tags of a socket of the role, whichever module it is, without reading its files. The sockets of the pipeline, which render the merged pubspec, are not among them.
Implementation
final Map<SocketRef, ContributionOrder> socketOrders;