public void testCreatePullRequestId() { PullRequestUrl id = PullRequestUrl.create("http://github.com/foo/bar/pull/5"); assertThat(id.owner()).isEqualTo("foo"); assertThat(id.project()).isEqualTo("bar"); assertThat(id.number()).isEqualTo(5); assertThat(id.apiAddress()).isEqualTo("https://api.github.com/repos/foo/bar/pulls/5"); }