title: System rules returns different line separator
body: <p>I have a spring test class from <code>Spring in Action 4th</code> which tests simple class that prints something to standard output. It uses <code>System-Rules</code> library incorporated into junit.</p>
  
  <p>When I run the test it throwed <code>ComparisionException</code> - the only difference was line separator. Eventually I managed to bypass it by fetching line separator from <code>System.properties</code>. </p>
  
  <p>Is it somehow possible to configure System-Rules to make it automatically ?
  I'm using windows 7 professional.</p>
  
  <p><strong>Test</strong></p>
  
  <pre><code>import static org.junit.Assert.*;
  
  import org.junit.Rule;
  import org.junit.Test;
  import org.junit.contrib.java.lang.system.StandardOutputStreamLog;
  import org.junit.runner.RunWith;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.test.context.ContextConfiguration;
  import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
  
  @RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(locations = "classpath:META-INF/spring/soundsystem.xml")
  public class CDPlayerXMLConfigTest {
  
      private String newLine = System.getProperty("line.separator");//This will retrieve line separator dependent on OS.
  
      @Rule
      public final StandardOutputStreamLog log = new StandardOutputStreamLog();
  
      @Autowired
      private MediaPlayer player;
  
      @Autowired
      private CompactDisc cd;
  
      @Test
      public void cdShouldNotBeNull() {
          assertNotNull(cd);
      }
  
      @Test // Won't pass
      public void play() {
          player.play();
          assertEquals("Playing Sgt. Pepper's Lonely Hearts Club Band by The Beatles\n", log.getLog());
      }
  
      @Test //Will pass
      public void play2() {
          player.play();
          assertEquals("Playing Sgt. Pepper's Lonely Hearts Club Band by The Beatles" + newLine, log.getLog());
      }
  }
  </code></pre>
  
  <p><strong>Tested class</strong></p>
  
  <pre><code>@Component
  public class SgtPeppers implements CompactDisc {
  
      private String title = "Sgt. Pepper's Lonely Hearts Club Band";
      private String artist = "The Beatles";
  
      public void play() {
          System.out.println("Playing " + title + " by " + artist);
      }
  
  }
  </code></pre>