@Test
public void loadsAllVersions() {

  for (Version version : catalog.getSupportedVersions()) {
    Message expectedFailure = version.getExceptionFactory().createGoogleAdsFailure();
    ApiException exception =
        getApiExceptionForVersion(
            version.getExceptionFactory().getTrailerKey(), expectedFailure.toByteArray());
    Throwable result = transformation.transform(exception);
    Message actualFailure = ((BaseGoogleAdsException) result).getGoogleAdsFailure();
    assertEquals(expectedFailure, actualFailure);
  }
}