JobRecipient extends BaseEntity implements Recipient { public void setType(RecipientType type) { this.type = type; } JobRecipient();  JobRecipient(String address, RecipientType type); @Override String getAddress(); void setAddress(String address); @Override RecipientType getType(); void setType(RecipientType type); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testSetType_1() throws Exception { JobRecipient fixture = new JobRecipient("", RecipientType.email); RecipientType type = RecipientType.email; fixture.setType(type); }