AMImageURLFactoryImpl implements AMImageURLFactory { @Override public URI createFileEntryURL( FileVersion fileVersion, AMImageConfigurationEntry amImageConfigurationEntry) { Date modifiedDate = fileVersion.getModifiedDate(); String relativeURI = String.format( "image/%d/%s/%s?t=%d", fileVersion.getFileEntryId(), amImageConfigurationEntry.getUUID(), _encode(fileVersion.getFileName()), modifiedDate.getTime()); return _amURIResolver.resolveURI(URI.create(relativeURI)); }  @Override URI createFileEntryURL(
		FileVersion fileVersion,
		AMImageConfigurationEntry amImageConfigurationEntry); @Override URI createFileVersionURL(
		FileVersion fileVersion,
		AMImageConfigurationEntry amImageConfigurationEntry);  }
@Test public void testCreatesURLForFileEntry() throws Exception { URI uri = _amImageURLFactoryImpl.createFileEntryURL( _fileVersion, _amImageConfigurationEntry); Assert.assertEquals( "prefix/image/1/theUuid/fileName?t=" + _modifiedDate.getTime(), uri.toString()); }