@@ -0,0 +1,877 @@
+package de.henningBrinkmann.mybatisSample.util;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.equalTo;%0Aimport static org.hamcrest.Matchers.not;%0Aimport static org.hamcrest.Matchers.notNullValue;%0A%0Aimport org.junit.Test;%0Aimport org.slf4j.Logger;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0A%0Aimport de.henningBrinkmann.mybatisSample.test.WebIntegrationTest;%0A%0Apublic class LoggerTest extends WebIntegrationTest%7B%0A%09@Autowired%0A%09private ClassWithLogger testee;%0A%0A%09@Test%0A%09public void testAppLoggers() %7B%0A%09%09Logger appLogger1 = testee.getAppLogger1();%0A%09%09assertThat(appLogger1, notNullValue());%0A%09%09Logger appLogger2 = testee.getAppLogger2();%0A%09%09%0A%09%09appLogger1.info(%22Using applogger 1.%22);%0A%09%09appLogger2.info(%22Using applogger 2.%22);%0A%09%09%0A%09%09assertThat(appLogger2, notNullValue());%0A%09%09assertThat(appLogger1, not(equalTo(appLogger2)));%0A%09%7D%0A%0A%7D%0A

Test injection of loggers from AppConfig.