### Question:
PersonSaveHandler implements SaveHandler<Person> { @Override public void handle(Person person, User creator, Date dateCreated, String other) { if (person.getAddresses() != null && !person.getAddresses().isEmpty()) { for (PersonAddress pAddress : person.getAddresses()) { if (pAddress.isBlank()){ person.removeAddress(pAddress); continue; } pAddress.setPerson(person); } } if (person.getNames() != null && !person.getNames().isEmpty()) { for (PersonName pName : person.getNames()) { pName.setPerson(person); } } if (person.getAttributes() != null && !person.getAttributes().isEmpty()) { for (PersonAttribute pAttr : person.getAttributes()) { pAttr.setPerson(person); } } if (!person.getDead() && person.getCauseOfDeath() != null) { person.setCauseOfDeath(null); } if (person.getPersonVoided()) { if (!StringUtils.hasLength(person.getPersonVoidReason())) { throw new APIException("Person.voided.bit", new Object[] { person }); } if (person.getPersonVoidedBy() == null) { person.setPersonVoidedBy(creator); } if (person.getPersonDateVoided() == null) { person.setPersonDateVoided(dateCreated); } } else { person.setPersonVoidedBy(null); person.setPersonDateVoided(null); person.setPersonVoidReason(null); } }  @Override void handle(Person person, User creator, Date dateCreated, String other);  }### Answer:
@Test public void handle_shouldIgnoreBlankAddresses() { PersonSaveHandler handler = new PersonSaveHandler(); Person person = new Person(); PersonName personName = new PersonName("John","","Smith"); person.addName(personName); person.setGender("M"); PersonAddress personAddress = new PersonAddress(); personAddress.setAddress1(" "); person.addAddress(personAddress); handler.handle(person,null,null,null); Assert.assertEquals(0,person.getAddresses().size()); }