@Test public void checksComGeotrustCertificatesPins() throws Exception { CertificatePinnerFactory certificatePinnerFactory = new CertificatePinnerFactory(); Map<String, List<String>> comCertificatesPins = certificatePinnerFactory .provideCertificatesPinsFor(Environment.COM); assertTrue(comCertificatesPins.containsKey("events.mapbox.com")); List<String> stagingPins = comCertificatesPins.get("events.mapbox.com"); assertTrue(stagingPins.contains("BhynraKizavqoC5U26qgYuxLZst6pCu9J5stfL6RSYY=")); assertTrue(stagingPins.contains("owrR9U9FWDWtrFF+myoRIu75JwU4sJwzvhCNLZoY37g=")); assertTrue(stagingPins.contains("SQVGZiOrQXi+kqxcvWWE96HhfydlLVqFr4lQTqI5qqo=")); assertTrue(stagingPins.contains("yJLOJQLNTPNSOh3Btyg9UA1icIoZZssWzG0UmVEJFfA=")); }
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); }    }