Suppose that I and a friend of mine are interested in resolving a particular legal hypothetical within the realm of civil law. The exact details are not important here, but no party of the hypothetical has a liability except to each other -- say, it's a breach of contract between the two parties, or a copyright violation.
Suppose then that my friend and I actually set up the hypothetical in real life -- we enter the contract, and then one of us violates the contract in exactly the way we discussed. The other one of us starts a lawsuit, we each get a lawyer, etc. Neither of us reveals that this case was deliberately set up by us to answer the question, at least not until such a question is asked directly.
To which stage of the judicial process would such a case go? Could it go to trial? My intuition tells me that if it becomes known that we have colluded in this manner, the case will be thrown out for lacking consideration. Thus, it will stop at or near the discovery process, as it will become clear that no damages have been incurred by either of us.
This is related to How can we resolve a bet on a question of law? -- the difference is that here, we have created the material dispute to go to court about. It is also related to Can a contract to kill help someone avoid murder charges? but in that case there is criminal liability involved, and criminal cases have the prosecution represent the interests of the state.