TarArchiveHandler handler = new TarArchiveHandler();
handler.setFactory(factory);
handler.setDroidCore(droidCore);
ResultHandler resultHandler = mock(ResultHandler.class);
when(resultHandler.handleDirectory(any(IdentificationResult.class),
any(ResourceId.class), anyBoolean())).thenReturn(expectedParentId);
handler.setResultHandler(resultHandler);
IdentificationRequest originalRequest = mock(IdentificationRequest.class);
RequestIdentifier originalIdentifier = new RequestIdentifier(file.toURI());