public void getUrls() throws FileSystemException {
FileObject backup = fsManager.resolveFile("s3://" + bucketName + "/test-place/backup.zip");
assertTrue(backup.getFileOperations().hasOperation(IPublicUrlsGetter.class));
IPublicUrlsGetter urlsGetter = (IPublicUrlsGetter) backup.getFileOperations().getOperation(IPublicUrlsGetter.class);
assertEquals(urlsGetter.getHttpUrl(), "http://" + bucketName + ".s3.amazonaws.com/test-place/backup.zip");
assertTrue(urlsGetter.getPrivateUrl().endsWith("@" + bucketName + "/test-place/backup.zip"));
final String signedUrl = urlsGetter.getSignedUrl(60);
assertTrue(
signedUrl.startsWith("https://" + bucketName + ".s3.amazonaws.com/test-place/backup.zip?"),
signedUrl);
assertTrue(signedUrl.indexOf("Signature=") != (-1));