public static String getAppName() {
        String appName;
        
        appName = getAppNameByProjectName();
        if (appName != null) {
            return appName;
        }
        
        appName = getAppNameByServerHome();
        if (appName != null) {
            return appName;
        }
        
        return DEFAULT_APP_NAME;
    }
@Test
    void testGetAppName() {
        
        System.setProperty(PARAM_MARKING_PROJECT, SERVER_UNKNOWN);
        assertEquals(SERVER_UNKNOWN, AppNameUtils.getAppName());
        System.clearProperty(PARAM_MARKING_PROJECT);
        
        System.setProperty(PARAM_MARKING_JBOSS, LINUX_ADMIN_HOME + SERVER_JBOSS + File.separator);
        assertEquals(SERVER_JBOSS, AppNameUtils.getAppName());
        System.clearProperty(PARAM_MARKING_JBOSS);
        
        System.setProperty(PARAM_MARKING_JETTY, LINUX_ADMIN_HOME + SERVER_JETTY + File.separator);
        assertEquals(SERVER_JETTY, AppNameUtils.getAppName());
        System.clearProperty(PARAM_MARKING_JETTY);
        
        System.setProperty(PARAM_MARKING_TOMCAT, LINUX_ADMIN_HOME + SERVER_TOMCAT + File.separator);
        assertEquals(SERVER_TOMCAT, AppNameUtils.getAppName());
        System.clearProperty(PARAM_MARKING_TOMCAT);
        
        assertEquals(DEFAULT_APP_NAME, AppNameUtils.getAppName());
        
    }