Is it possible to undefine a Java class using JRuby?
===

I have some ruby code that depends on a java library, but I want the ruby code to fail gracefully if a particular java class isn't available.

So I would like one of my unit tests to simulate that situation in order to assert "graceful failure".  But I only want it removed for the duration of that test, as other tests will depend on it.

So is it possible to undefine say, org.foo.SomeRandomJavaClass using JRuby?