@Test
public void testLoad() throws Exception {

  // basic load
  resolver.load("com.databricks:spark-csv_2.10:1.3.0", testCopyPath);
  assertEquals(new File(home + "/" + testCopyPath).list().length, 4);
  FileUtils.cleanDirectory(new File(home + "/" + testCopyPath));
  // load with exclusions parameter
  resolver.load("com.databricks:spark-csv_2.10:1.3.0",
      Collections.singletonList("org.scala-lang:scala-library"), testCopyPath);
  assertEquals(new File(home + "/" + testCopyPath).list().length, 3);
  FileUtils.cleanDirectory(new File(home + "/" + testCopyPath));
  // load from added repository
  resolver.addRepo("sonatype", "https://oss.sonatype.org/content/repositories/agimatec-releases/", false);
  resolver.load("com.agimatec:agimatec-validation:0.9.3", testCopyPath);
  assertEquals(new File(home + "/" + testCopyPath).list().length, 8);
  // load invalid artifact
  resolver.delRepo("sonatype");
  exception.expect(RepositoryException.class);
  resolver.load("com.agimatec:agimatec-validation:0.9.3", testCopyPath);
}