*/
@Test
public void canRelogin() throws Exception {
final String login = "mark";
final MkGithub github = new MkGithub();
final Repo repo = github.repos().create(MkGithubTest.json());
final Issue issue = repo.issues().create("title", "Found a bug");
final Comment comment = github
.relogin(login)
.repos()
.get(repo.coordinates())
.issues()
.get(issue.number())
.comments()
.post("Nice change");
MatcherAssert.assertThat(
new User.Smart(new Comment.Smart(comment).author()).login(),
Matchers.not(
Matchers.equalTo(
new User.Smart(repo.github().users().self()).login()
)
)
);
MatcherAssert.assertThat(
new User.Smart(new Comment.Smart(comment).author()).login(),