@Test
    public void testHttpUriWithOwnerAndName() {
        Repository repo = RepositoryUriMatcher.getRepository(Uri
                .parse("http://github.com/defunkt/resque"));
        assertNotNull(repo);
        assertEquals("resque", repo.name());
        assertNotNull(repo.owner());
        assertEquals("defunkt", repo.owner().login());
    }
Verify URI with owner but no name
app/src/androidTest/java/com/github/pockethub/android/tests/repo/RepositoryUriMatcherTest.java