RootPathResolver { public void setFallbackRootPath(@NotNull String fallbackRootPath) { this.fallbackRootPath = fallbackRootPath; } RootPathResolver(@NotNull ComponentHelper cmp, @NotNull SlingHttpServletRequest request); void setRootPathDetector(@NotNull RootPathDetector rootPathDetector); void setFallbackRootPath(@NotNull String fallbackRootPath); @NotNull String get(); Map<String, Object> getOverrideProperties();  }
@Test void testGivenFallbackPath() { context.create().resource("/content"); RootPathResolver underTest = prepareComponent(); underTest.setFallbackRootPath("/content"); assertRootPath(underTest, "/content"); }
@Test void testGivenFallbackPath_FallbackToExisting() { RootPathResolver underTest = prepareComponent(); underTest.setFallbackRootPath("/content/abc"); assertRootPath(underTest, DEFAULT_FALLBACK_ROOT_PATH); }