}
public void testConvertToCharacter() throws Exception {
for (int i = 0; i < 1; i++) {
String jsonStr = JsonHelper.toJsonExt(new Character((char) 'a'));
Character actual = new JsonConvert().convertToCharacter(jsonStr);
Character expected = new Character((char) 'a');
junit.framework.Assert.assertEquals(expected, actual);
}
TestEntity te = TestEntity.createInstrance();
String jsonStr = JsonHelper.toJsonExt(te);
JSONObject jsonObj = new JSONObject(jsonStr);
Character actual = new JsonConvert().convertToCharacter(jsonObj
.get("fCharacter"));
junit.framework.Assert.assertEquals(te.getFCharacter(), actual);
}