expect(mockArtifactStatus.getName()).andReturn(coreJarFilename);
// FileWrapper mockDownloadsDirectory = mockHelper.createMock("mockDownloadsDirectory", FileWrapper.class);
// expect(mockDownloadsDirectory.isDirectory()).andStubReturn(true);
// expect(mockFileWrapperFactory.create(mockUpdateDirectory, UpdateUtil.DOWNLOADS_DIR_NAME));
// expectLastCall().andReturn(mockDownloadsDirectory);
FileWrapper mockDownloadsCoreDirectory = mockHelper.createMock("mockDownloadsCoreDirectory", FileWrapper.class);
expect(mockDownloadsCoreDirectory.isDirectory()).andReturn(true);
expect(mockFileWrapperFactory.create(mockDownloadsDirectory, UpdateUtil.CORE_ARTIFACT_ID));
expectLastCall().andReturn(mockDownloadsCoreDirectory);
FileWrapper mockSomeCoreJarFile = mockHelper.createMock("mockSomeCoreJarFile", FileWrapper.class);
expect(mockFileWrapperFactory.create(mockDownloadsCoreDirectory, coreJarFilename));
expectLastCall().andReturn(mockSomeCoreJarFile);
mockHelper.replayAll();
FileWrapper result = underTest.getDownloadFileLocation(mockArtifactStatus);
mockHelper.verifyAll();
assertEquals(mockSomeCoreJarFile, result);
}