*/
@Test
public void createIssue() throws Exception {
final String title = "Found a bug";
final String body = issue(title).toString();
final MkContainer container = new MkGrizzlyContainer().next(
new MkAnswer.Simple(HttpURLConnection.HTTP_CREATED, body)
).next(new MkAnswer.Simple(HttpURLConnection.HTTP_OK, body)).start();
final RtIssues issues = new RtIssues(
new JdkRequest(container.home()),
repo()
);
final Issue issue = issues.create(title, "having a problem with it.");
MatcherAssert.assertThat(
container.take().method(),
Matchers.equalTo(Request.POST)
);
MatcherAssert.assertThat(
new Issue.Smart(issue).title(),
Matchers.equalTo(title)
);
container.stop();
}