protected static String anonymizeLog(String log) {
        return log.replaceAll(
            "(/((home)|(Users))/[^/\n]*)|(\\\\Users\\\\[^\\\\\n]*)",
            "/ANONYMIZED_HOME_DIR"); // NOI18N
    }
@Test
    public void testAnonymizeUnixLog() {
        String log = "" +
                "  System Locale; Encoding = en_GB (gephi); UTF-8\n" +
                "  Home Directory          = /home/mjackson\n" +
                "  Current Directory       = /home/mjackson/gephi/modules/application\n" +
                "  User Directory          = /home/mjackson/gephi/modules/application";

        String expected = "" +
                "  System Locale; Encoding = en_GB (gephi); UTF-8\n" +
                "  Home Directory          = /ANONYMIZED_HOME_DIR\n" +
                "  Current Directory       = /ANONYMIZED_HOME_DIR/gephi/modules/application\n" +
                "  User Directory          = /ANONYMIZED_HOME_DIR/gephi/modules/application";

        String anonymized = ReportController.anonymizeLog(log);

        Assert.assertEquals(expected, anonymized);
    }