adapterSer.replace('"', '\''));
}
public void testMixinAdapter() throws Exception {
sc.addAdapter("Test Adapter", TestClass.class, new TestJsonSerializer());
String adapterSer = sc.ser(new TestClass("mytest"));
assertEquals("failed adapter serialization:",
"{\"n\":\"mytest\",\"p\":\"Config.xml\",\"c\":[]}", adapterSer);
//System.out.println("adapterSer:"+adapterSer);
((Initializable)sc).initialize(); //reinit
String defaultSer = sc.ser(new TestClass("mytest"));
assertEquals("failed adapter serialization:",
"{\"container\":{\"cf\":\"Config.xml\"},\"configurationName\":\"Config.xml\",\"name\":\"mytest\"}", defaultSer);
}