directoryEventHandler.onEvent(dir, id, 0, false);
ArgumentCaptor<IdentificationResult> resultCaptor = ArgumentCaptor.forClass(IdentificationResult.class);
verify(resultHandler).handleDirectory(resultCaptor.capture(), eq(id), eq(false));
IdentificationResult result = resultCaptor.getValue();
assertEquals("c:/my-dir", result.getMetaData().getName());
assertEquals(length, result.getMetaData().getSize().longValue());
assertEquals(123456789L, result.getMetaData().getTime().longValue());
assertEquals(uri, result.getIdentifier().getUri());
assertEquals(1L, result.getIdentifier().getParentId().longValue());
}