### Question:
AttachmentStreamConnector { protected String printAcceptedZipEntryName(String fileName, int count) { String fileExtension = getExtensionFromFileName(fileName); if (fileExtension.length() > 0) { fileExtension = "." + fileExtension; return fileName.substring(0, fileName.lastIndexOf(fileExtension)) + String.format(" (%d)", count) + fileExtension; } else { return fileName + String.format(" (%d)", count); } } AttachmentStreamConnector(Duration downloadTimeout);  AttachmentStreamConnector(DatabaseConnector connector, Duration downloadTimeout);  AttachmentStreamConnector(DatabaseConnector connector, AttachmentContentDownloader attachmentContentDownloader, Duration downloadTimeout); InputStream getAttachmentStream(AttachmentContent attachment, User user, T context); InputStream unsafeGetAttachmentStream(AttachmentContent attachment); InputStream getAttachmentBundleStream(Set<AttachmentContent> attachments, User user, T context); void uploadAttachment(AttachmentContent attachment, InputStream stream); void uploadAttachmentPart(AttachmentContent attachmentContent, int part, InputStream stream); InputStream getAttachmentPartStream(AttachmentContent attachment, int part);  }### Answer:
@Test public void testPrintAcceptedZipEntryName() { assertThat(attachmentStreamConnector.printAcceptedZipEntryName("source.zip", 0), is("source (0).zip")); assertThat(attachmentStreamConnector.printAcceptedZipEntryName("source.JPG", 2), is("source (2).JPG")); assertThat(attachmentStreamConnector.printAcceptedZipEntryName("source..v1.001.tar.xz", 3), is("source..v1.001 (3).tar.xz")); assertThat(attachmentStreamConnector.printAcceptedZipEntryName("source", 4), is("source (4)")); }