assertEquals( expectedYes, json );
spiderman.spideySense = false;
json = new JSONSerializer().transform( new BooleanAsStringTransformer("yes", "no"), Boolean.class ).serialize(spiderman);
assertEquals( expectedNo, json );
spiderman = new JSONDeserializer<Spiderman>().use(Boolean.class, new BooleanAsStringObjectFactory("yes", "no")).deserialize(expectedYes, Spiderman.class);
assertTrue( "Assert it deserialized yes into true", spiderman.spideySense );
spiderman = new JSONDeserializer<Spiderman>().use(Boolean.class, new BooleanAsStringObjectFactory("yes", "no")).deserialize( expectedNo, Spiderman.class );
assertFalse("Assert it deserialized no into false", spiderman.spideySense);
}