}
public static void testJsonEx() {
Collection<LearningTool> ltools = new LinkedList<LearningTool>();
LearningToolCls ltool1 = new LearningToolCls();
ltool1.setTitle("WordPress");
GeneralInformation gi1 = new GeneralInformationCls();
gi1.setDescription("WordPress is ...");
gi1.setToolURL("http://www.wordpress.com");
gi1.setToolCost(ToolCostCls.FREE);
gi1.setToolAvailability(ToolAvailabilityCls.HOSTED);
ltool1.setGeneralInfo(gi1);
TechnicalInformation ti1 = new TechnicalInformationCls();
ti1.setLaunchedTime("12-01-2001");
ti1.setVersion("2.9");
ti1.registration(true);
ti1.isOpenSource(false);
ti1.addMD(MobileDeviceCls.BLACKBERRY);
ti1.addMD(MobileDeviceCls.ANDROID);
ti1.addMD(MobileDeviceCls.IPHONE);
ti1.addOS(OperetingSystemCls.LINUX);
ti1.addOS(OperetingSystemCls.WINDOWS);
ti1.addOS(OperetingSystemCls.MAC);
ltool1.setTechnicalInfo(ti1);
Collection<Feature> features = new LinkedList<Feature>();
Blog blog = new BlogCls();
ContactList folowers = new ContactListCls();
features.add(blog);
features.add(folowers);
ltool1.setFeatures(features);
LearningToolCls ltool2 = new LearningToolCls();
ltool2.setTitle("Facebook");
GeneralInformation gi2 = new GeneralInformationCls();
gi2.setDescription("Facebook is ...");
gi2.setToolURL("http://www.facebook.com");
gi2.setToolCost(ToolCostCls.FREE);
gi2.setToolAvailability(ToolAvailabilityCls.HOSTED);
ltool2.setGeneralInfo(gi2);
TechnicalInformation ti2 = new TechnicalInformationCls();
ti2.setLaunchedTime("12-01-2001");
ti2.setVersion("2.9");
ti2.registration(true);
ti2.isOpenSource(false);
ti2.addMD(MobileDeviceCls.BLACKBERRY);
ti2.addMD(MobileDeviceCls.ANDROID);
ti2.addMD(MobileDeviceCls.IPHONE);
ti2.addOS(OperetingSystemCls.LINUX);
ti2.addOS(OperetingSystemCls.WINDOWS);
ti2.addOS(OperetingSystemCls.MAC);
ltool2.setTechnicalInfo(ti2);
Collection<Feature> facefeatures = new LinkedList<Feature>();
UserProfileManagement upm = new UserProfileManagementCls();
SocialNetworking sn = new SocialNetworkingCls();
SiteSearch ss = new SiteSearchCls();
MultimediaHosting mh = new MultimediaHostingCls();
InstantMessaging im = new InstantMessagingCls();
CollaborativeTagging ct = new CollaborativeTaggingCls();
facefeatures.add(upm);
facefeatures.add(sn);
facefeatures.add(ss);
facefeatures.add(mh);
facefeatures.add(im);
facefeatures.add(ct);
ltool2.setFeatures(facefeatures);
ltools.add(ltool1);
ltools.add(ltool2);
try {