Index: /applications/editors/josm/plugins/MicrosoftStreetside/test/unit/org/openstreetmap/josm/plugins/streetside/utils/TestUtil.java
===================================================================
--- /applications/editors/josm/plugins/MicrosoftStreetside/test/unit/org/openstreetmap/josm/plugins/streetside/utils/TestUtil.java	(revision 36486)
+++ /applications/editors/josm/plugins/MicrosoftStreetside/test/unit/org/openstreetmap/josm/plugins/streetside/utils/TestUtil.java	(revision 36487)
@@ -3,4 +3,5 @@
 
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
@@ -66,6 +67,8 @@
             final Constructor<?> constructor = c.getDeclaredConstructors()[0];
             // constructor has to be private
-            assertTrue(!constructor.isAccessible() && Modifier.isPrivate(constructor.getModifiers()));
+            assertFalse(constructor.canAccess(null));
+            assertTrue(Modifier.isPrivate(constructor.getModifiers()));
             constructor.setAccessible(true);
+            assertTrue(constructor.canAccess(null));
             // Call private constructor for code coverage
             constructor.newInstance();
