I have the following code in one of my tests. The second assertion fails.
String decode1 = URLDecoder.decode("a%20b", "UTF-8");
assertTrue("a b".equals(decode1)); // pass
assertEquals("a b", decode1); // FAIL
I can't figure out why. Is this a bug with JUnit? You would think that JUnit would just call .equals() if the first arg is not null...