conducting a trial requires a law establishing agency