There seems to be a pretty good example that recently went before the court. Mississippi passed a law that largely outlawed abortion, exactly for the purpose of provoking a legal battle that would make its way to the Supreme Court. A state like California could turn around and do the same thing to outlaw Scientology, or pass an extremely restrictive gun control law when the court's composition becomes more favorable, asking the court to overturn the 2010 case McDonald, which is the precedent that now asserts that the 2nd amendment applies to the states.
If successful, the court would be returning the matter back to the states, which is exactly where it belongs according to the constitution.