}
}
public void testSimplePut() throws Exception
{
DataVersion version = new TestVersion("99");
cache.getInvocationContext().getOptionOverrides().setDataVersion(version);
cache.put(fqn, key, "value");
//now retrieve the data from the cache.
assertEquals("value", cache.get(fqn, key));
// get a hold of the node
NodeSPI<String, String> node = cache.getNode(fqn);
DataVersion versionFromCache = node.getVersion();
assertEquals(TestVersion.class, versionFromCache.getClass());
assertEquals("99", ((TestVersion) versionFromCache).getInternalVersion());
}