In Barclays Bank v Anderson, an important case in the South African law of succession, the court said that conditions excluding the jurisdiction of the court are against public policy and are thus invalid. Furthermore, it was stated that the appropriate way to resolve bad-faith attacks is to grant a costs order against the party who acted in bad faith.
References
Barclays Bank v Anderson Wikipedia(Text) CC BY-SA