### Question:
MavenContentHelper { static String getArtifactFileName( String artifactId, String artifactVersion, String classifier, String extension ) { StringBuilder fileName = new StringBuilder( artifactId ).append( "-" ); fileName.append( artifactVersion ); if ( !StringUtils.isEmpty( classifier ) ) { fileName.append( "-" ).append( classifier ); } fileName.append( "." ).append( extension ); return fileName.toString( ); } MavenContentHelper(); void setMetadataReader( MavenMetadataReader metadataReader ); static String getNamespaceFromNamespacePath( final StorageAsset namespacePath); String getArtifactVersion( StorageAsset artifactDir, ItemSelector selector); String getLatestArtifactSnapshotVersion( StorageAsset artifactDir, String snapshotVersion); static final Pattern UNIQUE_SNAPSHOT_NUMBER_PATTERN; static final String METADATA_FILENAME; static final String METADATA_REPOSITORY_FILENAME; }### Answer:
@Test void getArtifactFileName( ) { assertFileName( "test-1.0.jar", "test", "", "1.0", "jar" ); assertFileName( "test-1.1-client.jar", "test", "client", "1.1", "jar" ); assertFileName( "te445st-2.1-sources.jar", "te445st", "sources", "2.1", "jar" ); assertFileName( "abcde-8888.994894.48484-10.jar", "abcde", "", "8888.994894.48484-10", "jar" ); assertFileName( "testarchive-5.0.war", "testarchive", "", "5.0", "war" ); }