Protest law will hold up in court, Guy Barnett says