title: JUnit - string check fails because of \n
body: <p>I have a JUnit test case where text blocks are checked. There is the hard coded "correct" value:</p>
  
  <pre><code>String CORRECT_VAL = "First\\nSecond";
  </code></pre>
  
  <p>The json is generated like this:</p>
  
  <pre><code>String json =
              "{\n" +
              "    \"val\":\"" + CORRECT_VAL + "\",\n" +
              "}";
  </code></pre>
  
  <p>This String is converted to a JSONObject by org.json. But then the test failed:</p>
  
  <pre><code>expected:&lt;First[\r\n]Second&gt; but was:&lt;First[
  ]Second&gt;
  </code></pre>
  
  <p>So I see the "\n" in the console, too. :(</p>
  
  <hr>
  
  <p><strong>Comment Try 1":</strong></p>
  
  <pre><code>expected:&lt;First\[\]nSecond&gt; but was:&lt;First\[]nSecond&gt;
  Expected :First\\nSecond
  Actual   :First\nSecond
  </code></pre>
  
  <p><strong>Comment Try 2":</strong></p>
  
  <pre><code>expected:&lt;First[\r\n]Second&gt; but was:&lt;First[
  ]Second&gt;
  </code></pre>