Test of logging using log4j