@Test public void testCreateObject() throws Exception { Partners partners = new Partners(); Set<Partner> partnersList = new LinkedHashSet<>(); for (int y = 0; y < 3; y++) { Set<PartnerProperty> properties = new LinkedHashSet<>(); for (int i = 0; i < 5; i++) { PartnerProperty prop = new PartnerProperty(); prop.setName("id" + i); prop.setValue("xre: properties.add(prop); } Partner newPartner = new Partner("test"); newPartner.setProperties(properties); partnersList.add(newPartner); } partners.setPartners(partnersList); String result = serializeIt(partners, true); System.out.println(result); assertNotNull(result); }
public void setPartners(Set<Partner> partners) { this.partners = partners; }
Partners implements Expressions { public void setPartners(Set<Partner> partners) { this.partners = partners; } }
Partners implements Expressions { public void setPartners(Set<Partner> partners) { this.partners = partners; }  }
Partners implements Expressions { public void setPartners(Set<Partner> partners) { this.partners = partners; }  Set<Partner> getPartners(); void setPartners(Set<Partner> partners); void addPartner(Partner partner); }
Partners implements Expressions { public void setPartners(Set<Partner> partners) { this.partners = partners; }  Set<Partner> getPartners(); void setPartners(Set<Partner> partners); void addPartner(Partner partner);  }