}
}
public void testPropagationOfDefaultVersions() throws Exception
{
DefaultDataVersion expected = new DefaultDataVersion();
expected = (DefaultDataVersion) expected.increment();
cache[0].put(fqn, key, "value");
assertEquals("value", cache[0].get(fqn, key));
assertEquals("value", cache[1].get(fqn, key));
assertEquals(expected, ((OptimisticTreeNode) cache[0].get(fqn)).getVersion());
assertEquals(expected, ((OptimisticTreeNode) cache[1].get(fqn)).getVersion());
cache[1].put(fqn, key, "value2");
expected = (DefaultDataVersion) expected.increment();
assertEquals("value2", cache[0].get(fqn, key));
assertEquals("value2", cache[1].get(fqn, key));
assertEquals(expected, ((OptimisticTreeNode) cache[0].get(fqn)).getVersion());
assertEquals(expected, ((OptimisticTreeNode) cache[1].get(fqn)).getVersion());