@Test
public void testNoClassHintsForCollections() {
JoddJson.classMetadataName = "class";
Hero superman = creator.createSuperman();
String json = new JsonSerializer()
.include("powers") // redudant
.include("powers.class")
.use("powers.class", new SimpleClassnameTransformer())
.exclude("*.class")
.serialize(superman);
int count = StringUtil.count(json, "***");
assertEquals(4, count);
json = StringUtil.remove(json, "***");
Hero jsonSuperMan = new JsonParser()
.map("lair", SecretLair.class)
.map("secretIdentity", SecretIdentity.class)
.parse(json, Hero.class);
assertHeroHasSuperPowers(jsonSuperMan);