@Test
public void onLibrariesMaintainInsertionOrder_1() {

  addDependency("file1.jar", "library1");
  addDependency("file4.jar", "library4");
  addDependency("file2.jar", "library2");
  addDependency("file3.jar", "library3");
  List<String> dependencyNames = myDependencies.onLibraries().stream().map(LibraryDependency::getName).collect(Collectors.toList());
  assertThat(dependencyNames).hasSize(4);
  assertThat(dependencyNames)
    .containsExactly("Gradle: library1", "Gradle: library4", "Gradle: library2", "Gradle: library3").inOrder();
}