void () { //TODO RC: other enumerators return NULL_ID(=0) for null -- is it really important to return non-NULL_ID // value here? Path enumPath = myTempDirectory.newDirectoryPath().resolve("test.enum"); SimpleStringPersistentEnumerator enumerator = new SimpleStringPersistentEnumerator(enumPath); int id = enumerator.enumerate(null); assertEquals(1, id); }