@@ -0,0 +1,1419 @@
+package com.googlecode.objectify.test;%0A%0Aimport com.googlecode.objectify.annotation.Entity;%0Aimport com.googlecode.objectify.annotation.Id;%0Aimport com.googlecode.objectify.test.util.TestBase;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport static com.google.common.truth.Truth.assertThat;%0Aimport static com.googlecode.objectify.ObjectifyService.factory;%0A%0A/**%0A */%0Aclass EmbeddedMapNestingTests extends TestBase%0A%7B%0A%09@Entity%0A%09private static class HasMap %7B%0A%09%09@Id%0A%09%09Long id;%0A%09%09Map%3CString, Object%3E map = new HashMap%3C%3E();%0A%09%7D%0A%0A%09/**%0A%09 * Testing issue #347%0A%09 * This is not actually possible; because the type of the value is Object, the FullEntity that comes back from%0A%09 * the datastore will be left as-is. Objectify can't know that you want it to be turned into a Map.%0A%09 * Disabling the test but leaving it here in case we want to add some extra annotations to enable this%0A%09 * behavior in the future.%0A%09 */%0A%09//@Test%0A%09void canNestMaps() throws Exception %7B%0A%09%09factory().register(HasMap.class);%0A%0A%09%09final HasMap hm = new HasMap();%0A%0A%09%09final Map%3CString, Object%3E map = hm.map;%0A%09%09final Map%3CString, Object%3E map2 = new HashMap%3C%3E();%0A%09%09final Map%3CString, Object%3E map3 = new HashMap%3C%3E();%0A%09%09map.put(%22level%22, 1);%0A%09%09map2.put(%22level%22, 2);%0A%09%09map3.put(%22level%22, 3);%0A%09%09map3.put(%22val%22, %22alldone%22);%0A%09%09map2.put(%22embed%22, map3);%0A%09%09map.put(%22embed%22, map2);%0A%0A%09%09final HasMap fetched = saveClearLoad(hm);%0A%0A%09%09assertThat(fetched.map).isEqualTo(hm.map);%0A%09%7D%0A%7D%0A

Add disabled EmbeddedMapNestingTests