Index: trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java	(revision 10011)
+++ trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java	(revision 10019)
@@ -5,4 +5,5 @@
 
 import java.io.File;
+import java.io.IOException;
 import java.nio.file.Paths;
 import java.text.MessageFormat;
@@ -12,4 +13,5 @@
 import org.openstreetmap.josm.gui.layer.Layer;
 import org.openstreetmap.josm.gui.preferences.ToolbarPreferences;
+import org.openstreetmap.josm.io.CertificateAmendment;
 import org.openstreetmap.josm.io.OsmApi;
 import org.openstreetmap.josm.tools.I18n;
@@ -93,4 +95,10 @@
         I18n.set(Main.pref.get("language", "en"));
 
+        try {
+            CertificateAmendment.addMissingCertificates();
+        } catch (IOException ex) {
+            throw new RuntimeException(ex);
+        }
+
         // init projection
         Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); // Mercator
Index: trunk/test/unit/org/openstreetmap/josm/io/CertificateAmendmentTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/io/CertificateAmendmentTest.java	(revision 10011)
+++ trunk/test/unit/org/openstreetmap/josm/io/CertificateAmendmentTest.java	(revision 10019)
@@ -25,5 +25,4 @@
     public static void setUp() throws IOException {
         JOSMFixture.createUnitTestFixture().init();
-        CertificateAmendment.addMissingCertificates();
     }
 
@@ -70,5 +69,14 @@
     }
 
-    private void connect(String url, boolean shouldWork) throws IOException {
+    /**
+     * Test overpass API.
+     * @throws IOException in case of I/O error
+     */
+    @Test
+    public void testOverpass() throws IOException {
+        connect("https://overpass-api.de", true);
+    }
+
+    private static void connect(String url, boolean shouldWork) throws IOException {
         URLConnection connection = new URL(url).openConnection();
         try {
@@ -76,4 +84,5 @@
         } catch (SSLHandshakeException e) {
             if (shouldWork) {
+                e.printStackTrace();
                 Assert.fail("Untrusted: " + url);
             } else {
