Maven profile to allow class functions to be virtual only during testing, and non-virtual for a release