String json = "{'loginName' :'user1','body' :{'mobile' :'"
+ mobil
+ "'}, 'str':{'mobile' :'"
+ str
+ "'}}";
Type type = new NutType(JsonRequest2.class, Employee2.class, Employee2.class);
JsonRequest2<Employee2, Employee2> request = ((JsonRequest2<Employee2, Employee2>) Json.fromJson(type,
json));
assertEquals(request.body.mobile, mobil);
assertEquals(request.str.mobile, str);
}