A retired music teacher and former union president has pleaded not guilty to the charge of sexually assaulting a female child.