 Generally, it is not available in anticipation of any injury except when the petitioner is likely to be affected by an official act in contravention of a statutory duty or where an illegal or unconstitutional order is made.The grant of mandamus is therefore an equitable remedy; a matter for the discretion of the court, the exercise of which is governed by well-settled principles.Mandamus being a discretionary remedy, the application for it must be made in good faith and not for indirect purposes.