HadoopWorkflowDirectoryFilter implements InitializingBean { public boolean filter(File file) { return file.getParentFile().getAbsolutePath().contains(springHadoopWorkflowDirectoryName); }  boolean filter(File file); String getSpringHadoopWorkflowDirectoryName(); void setSpringHadoopWorkflowDirectoryName(String springHadoopWorkflowFolderName); @Override void afterPropertiesSet();  }
@Test public void testFilter() { String value = "test"; filter.setSpringHadoopWorkflowDirectoryName(value); File file = new File("src/test/resources/org/springframework/data/hadoop/admin/util/test/context.xml"); boolean filtered = filter.filter(file); Assert.assertTrue(filtered); }