protected static String anonymizeLog(String log) {
        return log.replaceAll(
            "(/((home)|(Users))/[^/\n]*)|(\\\\Users\\\\[^\\\\\n]*)",
            "/ANONYMIZED_HOME_DIR"); // NOI18N
    }
@Test
    public void testAnonymizeWindowsLog() {
        String log = "" +
                "  Java Home               = C:\\Program Files\\Java\\jre1.8.0_311\n" +
                "  System Locale; Encoding = en_US (gephi); Cp1254\n" +
                "  Home Directory          = C:\\Users\\RickAstley\n" +
                "  Current Directory       = C:\\Program Files\\Gephi-0.9.2\n" +
                "  User Directory          = C:\\Users\\RickAstley\\AppData\\Roaming\\.gephi\\0.9.2\\dev\n" +
                "  Cache Directory         = C:\\Users\\RickAstley\\AppData\\Roaming\\.gephi\\0.9.2\\dev\\var\\cache\n" +
                "  Installation            = C:\\Program Files\\Gephi-0.9.2\\platform";

        String expected = "" +
                "  Java Home               = C:\\Program Files\\Java\\jre1.8.0_311\n" +
                "  System Locale; Encoding = en_US (gephi); Cp1254\n" +
                "  Home Directory          = C:/ANONYMIZED_HOME_DIR\n" +
                "  Current Directory       = C:\\Program Files\\Gephi-0.9.2\n" +
                "  User Directory          = C:/ANONYMIZED_HOME_DIR\\AppData\\Roaming\\.gephi\\0.9.2\\dev\n" +
                "  Cache Directory         = C:/ANONYMIZED_HOME_DIR\\AppData\\Roaming\\.gephi\\0.9.2\\dev\\var\\cache\n" +
                "  Installation            = C:\\Program Files\\Gephi-0.9.2\\platform";
        String anonymized = ReportController.anonymizeLog(log);

        Assert.assertEquals(expected, anonymized);
    }