@Test
public void testUpdateWithChangedSummary() throws Exception {
final Issue issue = client.getIssueClient().getIssue("TST-1", pm);
String orgSummary = issue.getSummary();
client.getIssueClient().update(issue, ImmutableList.of(
new FieldInput(IssueFieldId.SUMMARY_FIELD, "fooo")
), pm);
Issue changedIssue = client.getIssueClient().getIssue("TST-1", pm);
assertEquals("fooo", changedIssue.getSummary());
client.getIssueClient().update(issue, ImmutableList.of(
new FieldInput(IssueFieldId.SUMMARY_FIELD, orgSummary)
), pm);
changedIssue = client.getIssueClient().getIssue("TST-1", pm);
assertEquals(orgSummary, changedIssue.getSummary());
}