Adding a junit test for Analysis and Log4j appender