class OkHttpValidatorRestApiClient implements ValidatorRestApiClient {

  @Override
  @SuppressWarnings("unchecked")
  public List<ValidatorDuties> getDuties(final ValidatorDutiesRequest request) {
    return post(GET_DUTIES, request, ValidatorDuties[].class)
        .map(Arrays::asList)
        .orElse(Collections.EMPTY_LIST);
  }

  public  OkHttpValidatorRestApiClient(final String baseEndpoint);
  @VisibleForTesting  OkHttpValidatorRestApiClient(final HttpUrl baseEndpoint, final OkHttpClient okHttpClient);

}