public class WSJSONPopulatorTest extends TestCase {
public void testPopulatePrimitive() throws Exception{
WSJSONPopulator populator = new WSJSONPopulator(null, null, null, null, null);
JSONReader r = new JSONReader();
TestClass object = new TestClass();
populator.populateObject(object, (Map) r.read("{\"name\":\"nm\"}"), null, null);
assertEquals(object.name, "nm");
assertEquals(object.values, null);
populator.populateObject(object, (Map) r.read("{\"integer\":\"24\"}"), null, null);
assertEquals(object.integer, 24);
assertEquals(object.values, null);
}