[LOG4J2-811] SimpleLogger throws ArrayIndexOutOfBoundsException for an
empty array. Introduce a new Rule to write with cleaner and more
independent tests.