@@ -0,0 +1,1459 @@
+package com.newatlanta.appengine.junit.datastore;%0D%0A%0D%0Aimport org.junit.Test;%0D%0A%0D%0Aimport com.google.appengine.api.datastore.DatastoreService;%0D%0Aimport com.google.appengine.api.datastore.DatastoreServiceFactory;%0D%0Aimport com.google.appengine.api.datastore.Entity;%0D%0Aimport com.google.appengine.api.datastore.EntityNotFoundException;%0D%0Aimport com.google.appengine.api.datastore.Key;%0D%0Aimport com.google.appengine.api.memcache.MemcacheServiceFactory;%0D%0Aimport com.newatlanta.appengine.datastore.CachingDatastoreService;%0D%0Aimport com.newatlanta.appengine.datastore.CachingDatastoreService.CacheOption;%0D%0Aimport com.newatlanta.appengine.junit.vfs.gae.GaeVfsTestCase;%0D%0A%0D%0Apublic class CachingDatastoreServiceTestCase extends GaeVfsTestCase %7B%0D%0A    %0D%0A    @Test%0D%0A    public void testPutEntity() throws EntityNotFoundException %7B%0D%0A        // put an entity with a partial key%0D%0A        Entity entity = new Entity( %22test%22 );%0D%0A        entity.setProperty( %22test%22, %22test%22 );%0D%0A        assertFalse( entity.getKey().isComplete() );%0D%0A        DatastoreService datastore = new CachingDatastoreService( CacheOption.WRITE_THROUGH );%0D%0A        Key key = datastore.put( entity );%0D%0A        assertTrue( key.isComplete() );%0D%0A        assertTrue( MemcacheServiceFactory.getMemcacheService().contains( key ) );%0D%0A        entity = DatastoreServiceFactory.getDatastoreService().get( key );%0D%0A    %7D%0D%0A%0D%0A    @Test%0D%0A    public void testPutIterableOfEntity() %7B%0D%0A        fail( %22Not yet implemented%22 );%0D%0A    %7D%0D%0A%0D%0A%7D%0D%0A

test case for partial keys