This has been used as a strategy for dealing with the courts as a way of protesting against the unjustness of state institutions. It has been based on either a political/moral refusal to work with the system or a pragmatic choice to try and make the state pay.
Refusal can include refusing to attend court at all. You can then either wait to be arrested and taken to jail or present yourselves to a police station after a warrant has been issued for your arrest and volunteer to be locked up on that particular day.
You need to consider the fact that this approach will almost certainly result in you forfeiting bail as well as having to pay any fines issued against you (or serve the equivalent amount of time in prison).
A different form of refusal can be to refuse to speak or refuse to enter a plea (used by Greenham Common women in the United Kingdom). This means that you refuse to say whether you plead guilty or not guilty. The court will basically treat you as having pleaded not guilty.
One group of activists, arrested at Nurrungar miltary base in 1991, refused to attend court but handed themselves to police in a group to serve their sentence at a convenient time. In this way they were able to maintain control over when and how they dealt with the legal system.