Tasmania Police officer assaulted at BeerFest, court hears