public static UpdateRequirement fromJson(String json) {
    return JsonUtil.parse(json, UpdateRequirementParser::fromJson);
  }
@Test
  public void testAssertDefaultSortOrderIdFromJson() {
    String requirementType = UpdateRequirementParser.ASSERT_DEFAULT_SORT_ORDER_ID;
    int sortOrderId = 10;
    String json =
        String.format(
            "{\"type\":\"%s\",\"default-sort-order-id\":%d}", requirementType, sortOrderId);
    UpdateRequirement expected = new UpdateRequirement.AssertDefaultSortOrderID(sortOrderId);
    assertEquals(requirementType, expected, UpdateRequirementParser.fromJson(json));
  }