@Before
public void setUp() throws Exception {
ehCache = new net.sf.ehcache.Cache("test", 100, false, false, 10, 10);
cacheManager = CacheManager.create();
cacheManager.addCache(ehCache);
associationsCache = spy(new EhCacheAdapter(ehCache));
sagaCache = spy(new EhCacheAdapter(ehCache));
repository = mock(SagaRepository.class);
testSubject = new CachingSagaRepository(repository, associationsCache, sagaCache);
}