@Test
 public void shouldHaveGroupsInJson() throws Exception {
   fixture.createPipelineWithFirstStagePassedAndSecondStageHasNotStarted();
   JsonMap jsonMap = requestPipelineHistoryPage();
   JsonList groups = jsonMap.getJsonList("groups");
   assertThat(groups.size(), is(1));
 }
  @Test
  public void canForceShouldBeFalseForUnauthorizedAccess() throws Exception {
    configHelper.addSecurityWithAdminConfig();
    fixture.configStageAsManualApprovalWithApprovedUsers(fixture.devStage, "user");

    fixture.createPipelineWithFirstStagePassedAndSecondStageHasNotStarted();

    JsonMap jsonMap = requestPipelineHistoryPage();
    assertThat(getItemInJson(jsonMap, "canForce"), is("false"));
  }