### Question:
EvolutionConfig { public boolean handleResource(String name) { for (String entry : ignoreResources) { if (Pattern.matches(entry, name)) { return false; } } return true; } EvolutionConfig(String[] ignoreProperties, String[] ignoreResources); boolean handleProperty(String name); boolean handleResource(String name); static String printProperty(javax.jcr.Property property); static String printObject(Object obj);  }### Answer:
@Test public void testHandleResources() { String[] ignoreProps = {}; String[] ignoreRes = { "image", "par/image", ".*test.*" }; EvolutionConfig config = new EvolutionConfig(ignoreProps, ignoreRes); assertEquals(false, config.handleResource("image")); assertEquals(false, config.handleResource("par/image")); assertEquals(true, config.handleResource("bert/image")); assertEquals(false, config.handleResource("test")); assertEquals(false, config.handleResource("tester")); assertEquals(false, config.handleResource("par/test")); assertEquals(false, config.handleResource("par/testen")); }