@Test public void checksChinaHostname() throws Exception { CertificatePinnerFactory certificatePinnerFactory = new CertificatePinnerFactory(); Map<String, List<String>> chinaCertificatesPins = certificatePinnerFactory .provideCertificatesPinsFor(Environment.CHINA); assertTrue(chinaCertificatesPins.containsKey("events.mapbox.cn")); }
Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); } }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }  }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }   }
CertificatePinnerFactory { Map<String, List<String>> provideCertificatesPinsFor(Environment environment) { return CERTIFICATES_PINS.get(environment); }    }