Every package pruned should have references exposed by that framework's references.
We can test this by resolving the package for that framework version without doing conflict resolution or pruning.
Then we diff what is resolved with what is exposed by the framework itself.
Here's a sketch of such test infrastructure -- https://github.com/ericstj/scratch/tree/pruningTest