title: Is there a reliable way to compare two URIs for equality?
body: <p>after some threads I've found out that using the <code>equals()</code> method of URL is not as good as the method of URI.</p>
  
  <p>But when I write a JUnit Test and trying to compare</p>
  
  <p><code>http://de.wikipedia.com/</code></p>
  
  <p>with</p>
  
  <p><code>http://de.wikipedia.com</code></p>
  
  <p>Or</p>
  
  <p><code>http://awebsite.com</code></p>
  
  <p>is still not the same like</p>
  
  <p><code>www.awebsite.com</code></p>
  
  <p>So is there a reliable way (maybe with another library?) for comparing two URL/URI?</p>