ArgumentCaptor<ActionPlan> actionPlanCaptor = ArgumentCaptor.forClass(ActionPlan.class);
Result result = service.updateActionPlan("ABCD", parameters);
assertThat(result.ok()).isTrue();
verify(actionPlanService).update(actionPlanCaptor.capture(), any(UserSession.class));
ActionPlan actionPlan = actionPlanCaptor.getValue();
assertThat(actionPlan).isNotNull();
assertThat(actionPlan.key()).isNotNull();
assertThat(actionPlan.name()).isEqualTo("New Long term");
assertThat(actionPlan.description()).isEqualTo("New Long term issues");
assertThat(actionPlan.deadLine()).isNotNull();
assertThat(actionPlan.projectKey()).isEqualTo("org.sonar.MultiSample");
}