@Test
public void testListDatasets_withDeletedData() throws Exception {
ListDatasetsCommand command = new ListDatasetsCommand();
command.setDataStoreFactory(new MemoryDataStoreFactory());
Dataset dataset = new Dataset().setName("name1").setId("id");
command.addDatasetToHistory(dataset);
command.addDatasetToHistory(new Dataset().setName("name2").setId("deleted"));
command.includeDetails = true;
Mockito.when(datasets.get(Mockito.anyString())).thenReturn(datasetGet);
Mockito.when(datasetGet.execute())