@Test
public void shouldRenameDataSets() throws Exception {

    // given
    List<String> expected = new ArrayList<>();
    expected.add("cars");
    expected.add("us_states - my lookup");
    expected.add("communes_france - personnal/confidential");
    expected.add("Emails Reference - Quick Examples and Tutorials/Lookup");
    expected.add("Customer Contact Data - Quick Examples and Tutorials");
    expected.add("Business Unit Regions With States - Quick Examples and Tutorials/Lookup");
    expected.add("HRMS Export - Quick Examples and Tutorials");
    expected.add("nba_franchises");
    expected.add("Marketing Leads - Quick Examples and Tutorials");
    expected.add("CRM Export - Quick Examples and Tutorials");
    expected.add("Customer Marketing Leads - Quick Examples and Tutorials");
    // when
    task.run();
    // then
    final Stream<DataSetMetadata> list = repository.list();
    final List<String> names = list.map(DataSetMetadata::getName).collect(toList());
    assertTrue(names.containsAll(expected));
}