@Test
public void testCleanLoggerName() {

    LogAppender appender = new LogAppender();
    
    String loggerName = "wrong$Pattern%For&event!Name";
    String cleanedLoggerName = appender.cleanLoggerName(loggerName);
    assertThat(cleanedLoggerName, not(containsString("%")));
    assertThat(cleanedLoggerName, not(containsString("$")));
    assertThat(cleanedLoggerName, not(containsString("&")));
    assertThat(cleanedLoggerName, not(containsString("!")));
    assertThat(cleanedLoggerName, containsString("_"));
}