private String getNormalizedMessageFromLogEvent() {
   List<LogEvent> loggingEvents = testLogAppender.getEvents();
   assertThat(loggingEvents.size(), is(1));
   LogEvent loggingEvent = loggingEvents.get(0);
   assertThat(loggingEvent.getLevel(), is(Level.INFO));
   return loggingEvent.getMessage().getFormattedMessage().replace(LS, " ").replaceAll(" +", " ");
 }
 @Test
 public void setApplicationContext_reportSubsystemNotActive_reportIsNotLogged() {
   createContextForConfiguration(
       "test-spring-context-properties-only.xml",
       "test-spring-context-contexts-only.xml",
       "test-spring-context-jmx-only.xml");
   List<LogEvent> loggingEvents = testLogAppender.getEvents();
   assertThat(loggingEvents.size(), is(0));
 }
 @After
 public void tearDownAppender() {
   testLogAppender.close();
 }