Template methods for testing the getValue().