public void should_open_action_plan() {
HttpRequestFactory requestFactory = new HttpRequestFactory(httpServer.url());
httpServer.stubResponseBody("{\"actionPlan\": {\"key\": \"382f6f2e-ad9d-424a-b973-9b065e04348a\"}}");
ActionPlanClient client = new DefaultActionPlanClient(requestFactory);
ActionPlan result = client.open("382f6f2e-ad9d-424a-b973-9b065e04348a");
assertThat(httpServer.requestedPath()).isEqualTo("/api/action_plans/open");
assertThat(httpServer.requestParams()).includes(
entry("key", "382f6f2e-ad9d-424a-b973-9b065e04348a")
);