Refactoring TestConfigurator, which was full of unused variables, potential NPEs (which would have made it harder to diagnose test failures) and unnecessary assertTrue(... something.equals(...)) statements instead of assertEquals statements. This is done in preparation for fixing LOG4J2-293.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1519211 13f79535-47bb-0310-9956-ffa450edef68