@Override
  public String toString() {
    return "QualityGateImpl{" +
      "id='" + id + '\'' +
      ", name='" + name + '\'' +
      ", status=" + status +
      ", conditions=" + conditions +
      '}';
  }
@Test
  public void verify_toString() {
    when(condition.toString()).thenReturn("{Condition}");

    assertThat(underTest)
      .hasToString("QualityGateImpl{id='some id', name='some name', status=OK, conditions=[{Condition}]}");
  }