DefaultSlingSimulator implements SlingSimulatorBackend, SlingSimulator { static boolean isConfigExtension(String url) { for (final String ext : EXTENSIONS) { if (url.endsWith(ext)) { return true; } } return false; }  static SlingSimulatorBackend instance(); @Override void startedScan(); @Override void setSession(final Session session); @Override void setPackageManager(final JcrPackageManager packageManager); @Override void setErrorListener(final ErrorListener errorListener); @Override @Nullable SlingInstallable dequeueInstallable(); @SuppressWarnings("unchecked") @Override @NotNull Fun.ThrowingSupplier<ResourceType> open(@NotNull final SlingOpenable<ResourceType> installable); @NotNull JcrPackage openEmbeddedPackage(@NotNull final EmbeddedPackageInstallable installable); @Override @Nullable SlingInstallable addInstallableNode(final @NotNull PackageId parentPackageId,
                                                         final @NotNull Node node);  }
@Test public void testIsConfigExtension() { final Map<String, Boolean> expectBooleansForIds = new LinkedHashMap<>(); expectBooleansForIds.put("test.config", true); expectBooleansForIds.put("test.properties", true); expectBooleansForIds.put("test.jar", false); expectBooleansForIds.put("test.zip", false); for (Map.Entry<String, Boolean> entry : expectBooleansForIds.entrySet()) { assertEquals("expect boolean for id: " + entry.getKey(), entry.getValue(), DefaultSlingSimulator.isConfigExtension(entry.getKey())); } }