### Question:
VersioningUtils { public static final String getExpression(String appName) throws VersioningSyntaxException { if(appName != null && !appName.isEmpty()) { int colonIndex = appName.indexOf(EXPRESSION_SEPARATOR); if (colonIndex >= 0){ if (colonIndex == 0) { throw new VersioningSyntaxException( LOCALSTRINGS.getLocalString("versioning.deployment.invalid.appname1", "excepted application name before colon: {0}", appName)); } else if (colonIndex == (appName.length() - 1)) { throw new VersioningSyntaxException( LOCALSTRINGS.getLocalString("versioning.deployment.invalid.appname2", "excepted version identifier after colon: {0}", appName)); } return appName.substring(colonIndex + 1, appName.length()); } } return null; }  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 testGetExpression() throws VersioningSyntaxException { String expression = APPLICATION_NAME + VersioningUtils.EXPRESSION_SEPARATOR; try { String result = VersioningUtils.getExpression(expression); fail("the getExpression method did not throw a VersioningSyntaxException"); } catch (VersioningSyntaxException e) {} expression = APPLICATION_NAME + VersioningUtils.EXPRESSION_SEPARATOR + "RC-1" + VersioningUtils.EXPRESSION_SEPARATOR + "0.0"; try { String result = VersioningUtils.getExpression(expression); } catch (VersioningSyntaxException e) {} }