@VisibleForTesting
  public static Api parse(String api) {
    return parse(api, false);
  }
@Test
  public void parseApi_badInputs() {
    // TODO(b/223670489): would be nice to use expectThrows() here
    for (String badApi : UNPARSEABLE_APIS) {
      assertThrows(
          "Api.parse(\"" + badApi + "\")", IllegalArgumentException.class, () -> Api.parse(badApi));
    }
  }