Waste industry dangers highlighted in court