### Question:
DatasetService extends AbstractService { public FutureResult<Void> loadDataset(final Project project, final DatasetManifest manifest, final InputStream dataset) { notNull(project, "project"); notNull(dataset, "dataset"); notNull(manifest, "manifest"); manifest.setSource(dataset); return loadDatasets(project, manifest); } DatasetService(final RestTemplate restTemplate, final DataStoreService dataStoreService,
                          final GoodDataSettings settings); DatasetManifest getDatasetManifest(Project project, String datasetId); FutureResult<Void> loadDataset(final Project project, final DatasetManifest manifest,
                                          final InputStream dataset); FutureResult<Void> loadDataset(Project project, String datasetId, InputStream dataset); FutureResult<Void> loadDatasets(final Project project, DatasetManifest... datasets); FutureResult<Void> loadDatasets(final Project project, final Collection<DatasetManifest> datasets); Collection<Link> listDatasetLinks(final Project project); FutureResult<Void> optimizeSliHash(final Project project); FutureResult<Void> updateProjectData(final Project project, final String maqlDml); Collection<Upload> listUploadsForDataset(Project project, String datasetId); Upload getLastUploadForDataset(Project project, String datasetId); UploadStatistics getUploadStatistics(Project project); static final UriTemplate UPLOADS_INFO_TEMPLATE; }### Answer:
@Test(expectedExceptions = IllegalArgumentException.class) public void testLoadDatasetWithNullProject() { service.loadDataset(null, manifest, stream); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testLoadDatasetWithNullManifest() { service.loadDataset(project, (DatasetManifest) null, stream); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testLoadDatasetWithNullDataset() { service.loadDataset(project, manifest, null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testLoadDatasetByIdWithNullProject() { service.loadDataset(null, DATASET_ID, stream); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testLoadDatasetByIdWithNullId() { service.loadDataset(project, (String) null, stream); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testLoadDatasetByIdWithEmptyId() { service.loadDataset(project, "", stream); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testLoadDatasetByIdWithNullInputStream() { service.loadDataset(project, DATASET_ID, null); }