@Override public NewCodePeriods.ShowWSResponse load(String projectKey, String branchName) {
    String url = WS_URL + "?project=" + encodeForUrl(projectKey) + "&branch=" + encodeForUrl(branchName);
    try {
      return call(url);
    } catch (HttpException | IOException e) {
      throw new IllegalStateException("Failed to get the New Code definition: " + e.getMessage(), e);
    }
  }
@Test
  public void loads_new_code_period() throws IOException {
    prepareCallWithResults();
    underTest.load("project", "branch");
    verifyCalledPath("/api/new_code_periods/show.protobuf?project=project&branch=branch");
  }