@Test
    public void testTriggerWholeMessage() {
        setTrialEnabled(true);
        LoggerFactory.getLogger(String.class);
        boolean success = String.valueOf(byteArrayOutputStream)
                        .contains("Detected logger name mismatch. Given name: \"java.lang.String\"; " + "computed name: \"" + NAME_OF_THIS_CLASS + "\".");
        assertTrue("Actual value of byteArrayOutputStream: " + String.valueOf(byteArrayOutputStream), success);
    }
Tests that detecting logger name mismatches works and doesn't cause problems
or trigger if disabled.
<p>
This test can't live inside slf4j-api because the NOP Logger doesn't
remember its name.

@author Alexander Dorokhine
@author Ceki G&uuml;lc&uuml;
slf4j-simple/src/test/java/org/slf4j/simple/DetectLoggerNameMismatchTest.java