* Test of setClassCache method, of class ScriptingContainer.
*/
@Test
public void testSetClassCache() {
logger1.info("setClassCache");
ClassCache cache = null;
ScriptingContainer instance = new ScriptingContainer(LocalContextScope.THREADSAFE);
instance.setError(pstream);
instance.setOutput(pstream);
instance.setWriter(writer);
instance.setErrorWriter(writer);
instance.setClassCache(cache);
assertEquals(cache, instance.getClassCache());
cache = new ClassCache(instance.getProvider().getRuntime().getJRubyClassLoader(), 30);
instance.setClassCache(cache);
assertEquals(cache, instance.getClassCache());
assertTrue(instance.getClassCache().getMax() == 30);
instance = null;