Uri.parse() always returns null in unit test : <p>This simple unit test always passes and I can't figure out why.</p>

<pre><code>@RunWith(JUnit4.class)
class SampleTest {
    @Test testSomething() {
        Uri uri = Uri.parse("myapp://home/payments");
        assertTrue(uri == null);
    }
}
</code></pre>

<p>What I have tried so far is using a "traditional" URI (<code>http://example.com</code>) but <code>uri</code> was also <code>null</code>.</p>
