DisplayDownloadAttachmentBundle extends DisplayDownloadAbstract { public void setAttachments(Set<Attachment> attachments) { this.attachments = Collections.unmodifiableSet(nullToEmptySet(attachments)); }  @Override int doStartTag(); void setName(String name); void setAttachments(Set<Attachment> attachments);  }
@Test public void testThatAttachmentsIsNotSetToNull() throws Exception { DisplayDownloadAttachmentBundle displayDownloadAttachmentBundle = new DisplayDownloadAttachmentBundle(); displayDownloadAttachmentBundle.setAttachments(null); assertNotNull(displayDownloadAttachmentBundle.attachments); }