### Question:
VersioningUtils { public static final void checkIdentifier(String appName) throws VersioningException { String identifier = getExpression(appName); if (identifier != null && identifier.contains(EXPRESSION_WILDCARD)) { throw new VersioningWildcardException( LOCALSTRINGS.getLocalString("versioning.deployment.wildcard.not.allowed", "Wildcard character(s) are not allowed in a version identifier.")); } }  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 testGetIdentifier() throws VersioningException { String versionIdentifier = "BETA-1"; String appName = "foo" + VersioningUtils.EXPRESSION_SEPARATOR + versionIdentifier; try{ VersioningUtils.checkIdentifier(appName); } catch (VersioningSyntaxException e){ fail(e.getMessage()); } String versionExpression = "BETA-*"; appName = "foo" + VersioningUtils.EXPRESSION_SEPARATOR + versionExpression; try { VersioningUtils.checkIdentifier(appName); fail("the getIdentifier method should not accept version with '*' in it."); } catch (VersioningException e) {} }