private void setUpCacheAsMockObject(Method[] methodsToMock) throws Exception {
Class[] constructorTypes = new Class[] { String.class,
ICompositeCacheAttributes.class, IElementAttributes.class };
ICompositeCacheAttributes cacheAttributes = new CompositeCacheAttributes();
cacheAttributes.setCacheName(CACHE_NAME);
cacheAttributes.setMaxObjects(10);
cacheAttributes
.setMemoryCacheName("org.apache.jcs.engine.memory.lru.LRUMemoryCache");
ElementAttributes elementAttributes = new ElementAttributes();
Object[] constructorArgs = new Object[] { CACHE_NAME, cacheAttributes,
elementAttributes };