@Test
public void onLibrariesMaintainInsertionOrder_2() {

  addDependency("file_c.jar", "library_c");
  addDependency("file_d.jar", "library_d");
  addDependency("file_a.jar", "library_a");
  addDependency("file_b.jar", "library_b");
  List<String> dependencyNames = myDependencies.onLibraries().stream().map(LibraryDependency::getName).collect(Collectors.toList());
  assertThat(dependencyNames).hasSize(4);
  assertThat(dependencyNames)
    .containsExactly("Gradle: library_c", "Gradle: library_d", "Gradle: library_a", "Gradle: library_b").inOrder();
}