Fixing the problem by excluding Logger classes from the classpath when testing legacy subsystem as these logger classes may cause conflicts.
By using the "maven-processor-plugin" the logger code in tests is generated like it would be in production code.