// Write some data to metadata cache.
Locator l0 = Locator.createLocatorFromPathComponents("1", "a", "b");
Locator l1 = Locator.createLocatorFromPathComponents("1", "c", "d");
AstyanaxMetadataIO metadataIO = new AstyanaxMetadataIO();
Table<Locator, String, String> metaToWrite = HashBasedTable.create();
// By the pass the cache and write to disk directly.
metaToWrite.put(l0, "foo", "l0_foo");
metaToWrite.put(l0, "bar", "l0_bar");
metaToWrite.put(l1, "zee", "zzzzz");
metadataIO.putAll(metaToWrite);
// Do a cache get on one of those locators. We should get back null immediately.
Assert.assertNull(cache.get(l0, "foo"));
// Wait for the cache to be populated async for that locator + meta.