}
}
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, cache[0].getNode(fqn).getVersion());
assertEquals(expected, cache[1].getNode(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, cache[0].getNode(fqn).getVersion());
assertEquals(expected, cache[1].getNode(fqn).getVersion());