String revUrl = "foo.com:http/";
String url = "http://foo.com/";
store.createSchema();
WebPage page = WebPage.newBuilder().build();
Metadata metadata = Metadata.newBuilder().build();
metadata.setVersion(1);
metadata.getData().put(new Utf8("foo"), new Utf8("baz"));
page.setMetadata(metadata);
page.setUrl(new Utf8(url));
store.put(revUrl, page);
store.flush();
page = store.get(revUrl);
metadata = page.getMetadata();
assertNotNull(metadata);
assertEquals(1, metadata.getVersion().intValue());
assertEquals(new Utf8("baz"), metadata.getData().get(new Utf8("foo")));
}