[GSN] Is there a method that can compute the total cost to relay a transaction?

A post was split to a new topic: Example of using truffle tests to test a GSN recipient contract?