In the case that the judge does refuse and his bias is so blatant and over the top in some way (say you have a picture of him in KKK robes shaking the local
klan leader's hand) and your client's skin color is remotely not white, you can also file a petition to a higher court for a «Writ of Prohibition».