### Question:
VersioningUtils { public static final String getRepositoryName(String appName) { return appName.replace(EXPRESSION_SEPARATOR, REPOSITORY_DASH); }  static final String getUntaggedName(String appName); static final String getExpression(String appName); static final void checkIdentifier(String appName); static final List<String> getVersions(String untaggedName,
            List<Application> allApplications); static final List<String> matchExpression(List<String> listVersion, String appName); static final String getRepositoryName(String appName); static final Boolean isUntagged(String appName); static final Boolean isVersionExpression(String appName); static final Boolean isVersionExpressionWithWildCard(String appName); static final Boolean isVersionIdentifier(String appName); static final LocalStringManagerImpl LOCALSTRINGS; static final String EXPRESSION_SEPARATOR; static final String EXPRESSION_WILDCARD; static final String REPOSITORY_DASH; }### Answer:
@Test public void testGetRepositoryName() throws VersioningSyntaxException { String versionIdentifier = "RC-1.0.0"; String appName = APPLICATION_NAME + VersioningUtils.EXPRESSION_SEPARATOR + versionIdentifier; String expectedResult = APPLICATION_NAME + VersioningUtils.REPOSITORY_DASH + versionIdentifier; String result = ""; result = VersioningUtils.getRepositoryName(appName); assertEquals(expectedResult, result); versionIdentifier = "RC:1.0.0"; appName = APPLICATION_NAME + VersioningUtils.EXPRESSION_SEPARATOR + versionIdentifier; expectedResult = APPLICATION_NAME + VersioningUtils.REPOSITORY_DASH + versionIdentifier.replace(":", VersioningUtils.REPOSITORY_DASH); result = VersioningUtils.getRepositoryName(appName); assertEquals(expectedResult, result); }