Source:
<code>public EntitlementDTOTest() { super(EntitlementDTO.class); this.values = new HashMap<String, Object>(); OwnerDTO owner = new OwnerDTO(); owner.setId("owner_id"); owner.setKey("owner_key"); owner.setDisplayName("owner_name"); owner.setContentPrefix("content_prefix"); owner.setDefaultServiceLevel("service_level"); owner.setLogLevel("log_level"); owner.setAutobindDisabled(true); owner.setContentAccessMode("content_access_mode"); owner.setContentAccessModeList("content_access_mode_list"); PoolDTO pool = new PoolDTO(); pool.setId("pool_id"); pool.setProductId("pool_product_id"); pool.setProductName("pool_product_name"); ConsumerDTO consumer = new ConsumerDTO(); consumer.setId("consumer_id"); consumer.setName("consumer_name"); <START> consumer.setUsername("consumer_username"); <END> consumer.setType(new ConsumerTypeDTO()); Set<CertificateDTO> certs = new HashSet<CertificateDTO>(); CertificateDTO certificate = new CertificateDTO(); certificate.setId("cert-id"); certificate.setKey("cert-key"); certificate.setCert("cert"); certificate.setSerial(new CertificateSerialDTO()); certs.add(certificate); this.values.put("Id", "test-id"); this.values.put("Owner", owner); this.values.put("Pool", pool); this.values.put("Consumer", consumer); this.values.put("Quantity", 1); this.values.put("DeletedFromPool", false); this.values.put("Certificates", certs); this.values.put("StartDate", new Date()); this.values.put("EndDate", new Date()); this.values.put("Created", new Date()); this.values.put("Updated", new Date()); }</code><technical_language>need set uuid (e.g. consumer.setUuid("consumer_uuid");), EntitlementDTO's toString/populate/equals/hashcode methods consumerDTO's uuid, tests for methods for consumer field ignored</technical_language>

Target:
public EntitlementDTOTest() { super(EntitlementDTO.class); this.values = new HashMap<String, Object>(); OwnerDTO owner = new OwnerDTO(); owner.setId("owner_id"); owner.setKey("owner_key"); owner.setDisplayName("owner_name"); owner.setContentPrefix("content_prefix"); owner.setDefaultServiceLevel("service_level"); owner.setLogLevel("log_level"); owner.setAutobindDisabled(true); owner.setContentAccessMode("content_access_mode"); owner.setContentAccessModeList("content_access_mode_list"); PoolDTO pool = new PoolDTO(); pool.setId("pool_id"); pool.setProductId("pool_product_id"); pool.setProductName("pool_product_name"); ConsumerDTO consumer = new ConsumerDTO(); consumer.setId("consumer_id"); consumer.setUuid("consumer_uuid"); consumer.setName("consumer_name"); consumer.setUsername("consumer_username"); consumer.setType(new ConsumerTypeDTO()); Set<CertificateDTO> certs = new HashSet<CertificateDTO>(); CertificateDTO certificate = new CertificateDTO(); certificate.setId("cert-id"); certificate.setKey("cert-key"); certificate.setCert("cert"); certificate.setSerial(new CertificateSerialDTO()); certs.add(certificate); this.values.put("Id", "test-id"); this.values.put("Owner", owner); this.values.put("Pool", pool); this.values.put("Consumer", consumer); this.values.put("Quantity", 1); this.values.put("DeletedFromPool", false); this.values.put("Certificates", certs); this.values.put("StartDate", new Date()); this.values.put("EndDate", new Date()); this.values.put("Created", new Date()); this.values.put("Updated", new Date()); }