The prosecution of the Department of Justice over alleged failures at Bunbury Regional Prison has begun.