@Test
  public void testDefaultCharset() throws InitializationException {
    Properties p = new Properties();
    // Mixing sequence on purpose to test that sequence does not matter.
    p.put("MESSAGE.group", "4");
    p.put("LEVEL.group", "2");
    p.put("TIMESTAMP.group", "1");
    p.put("THREAD.group", "3");
    p.put("rePattern", "(\\S+ \\S+) +(\\S+) +\\[\\s*(\\S+)\\s*\\] +(.*)");
    p.put("type", "log4j");
    p.put("dateFormat", "yyyy-MM-dd HH:mm:ss,SSS");
    // p.put("name", "windows-1250");
    Log4jPatternMultilineLogParser logParser = new Log4jPatternMultilineLogParser();
    logParser.init(p);

    assertEquals("UTF-8", logParser.getParserDescription().getCharset());
  }
This class tests the "rePattern" alternative of Log4jPatternMultilineLogParser.
(As opposed to the more simple "pattern" system).
olv-core/src/test/java/pl/otros/logview/parser/log4j/Log4jPatternRegexParserTest.java