* filters out directories if not recursive.
*/
public void testPersistenceWhenNotRecursive() {
TimestampPersistence tsp = getTimestampPersistence(directory, false);
FileFilter filter = tsp.getFileFilter();
assertTrue(filter.accept(new File(configDirectory, "testfile")));
assertFalse(filter.accept(new File(configDirectory)));
File nestedDir = new File(configDirectory, "nestedDir");
nestedDir.delete();
nestedDir.mkdirs();
assertTrue(nestedDir.isDirectory());