* However, Trees aren't normally removed as they are non-transactional in < Persistit 3.3.0.
*/
@Test
public void invalidTreeClearsCache() throws Exception {
final Exchange ex1 = treeService.getExchange(session(), new TestLink("schema", "someTree"));
final Tree tree = ex1.getTree();
treeService.releaseExchange(session(), ex1);
assertFalse(treeService.exchangeQueue(session(), ex1.getTree()).isEmpty());
final Exchange ex2 = treeService.getExchange(session(), new TestLink("schema", "someTree"));
final Exchange ex3 = treeService.getExchange(session(), new TestLink("schema", "someTree"));
treeService.releaseExchange(session(), ex3);