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