@Test
    public void shouldThrowRuntimeException() {
        final String name = "gremlin-bogus";
        final Artifact a = new Artifact(GROUP_ID, name, VERSION);
        final File pluginDir = new File(extTestDir, name);

        // attempt to install bogus plugin
        try {
            dg.copyDependenciesToPath(a);

            fail("The bogus plugin installed");

        } catch (Exception re) {
            assertTrue("The bogus plugin dir was not installed", !pluginDir.exists());
        }
    }
@author Jason Plurad (http://github.com/pluradj)
gremlin-groovy/src/test/java/org/apache/tinkerpop/gremlin/groovy/util/DependencyGrabberIntegrateTest.java