public static String toJson(UpdateRequirement updateRequirement) {
    return toJson(updateRequirement, false);
  }
@Test
  public void testAssertDefaultSortOrderIdToJson() {
    String requirementType = UpdateRequirementParser.ASSERT_DEFAULT_SORT_ORDER_ID;
    int sortOrderId = 10;
    String expected =
        String.format(
            "{\"type\":\"%s\",\"default-sort-order-id\":%d}", requirementType, sortOrderId);
    UpdateRequirement actual = new UpdateRequirement.AssertDefaultSortOrderID(sortOrderId);
    assertThat(UpdateRequirementParser.toJson(actual))
        .as("AssertDefaultSortOrderId should convert to the correct JSON value")
        .isEqualTo(expected);
  }