FilterProviderImpl implements FilterProvider { @Modified protected void modified(Configuration configuration, Map<String, Object> properties) { setPath(configuration); }  @Override boolean handlesPath(@NotNull String oakPath); @NotNull @Override String getFilterRoot(); @NotNull @Override Filter getFilter(@NotNull SecurityProvider securityProvider, @NotNull Root root, @NotNull NamePathMapper namePathMapper);  }
@Test public void testModified() { String modifiedPath = "/modified/path"; provider.modified(when(mock(FilterProviderImpl.Configuration.class).path()).thenReturn(modifiedPath).getMock(), Collections.emptyMap()); assertEquals(modifiedPath, provider.getFilterRoot()); }