@Test
public void testGet() {

    // Create a record in the cache
    Datastore datastore = getService();
    KeyFactory keyFactory = datastore.newKeyFactory().setKind(CACHE_KIND);
    Key key = keyFactory.newKey("test");
    Entity.Builder builder = Entity.newBuilder(key);
    builder.set(CACHE_VALUE_FIELD, BlobValue.of(Blob.copyFrom("abcd".getBytes())));
    builder.set(CACHE_EXPIRY_FIELD, 0);
    Entity entity = builder.build();
    datastore.put(entity);
    // Check that the cache backend can retrieve the value
    assertArrayEquals("abcd".getBytes(), cache.get("test"));
}