DisplayDownloadApprovedClearingReport extends DisplayDownloadAbstract { public void setAttachment(Attachment attachment) { this.attachment = attachment; }  @Override int doStartTag(); void setAttachment(Attachment attachment);  }
@Test public void testThatImageDependsOnStatus() { Attachment attachment = createAttachment("test.file"); DisplayDownloadApprovedClearingReport displayDownloadAttachment = new DisplayDownloadApprovedClearingReport(); displayDownloadAttachment.setAttachment(attachment); assertEquals(DisplayDownloadAbstract.DOWNLOAD_IMAGE_ENABLED, displayDownloadAttachment.getImage()); }