MetadataImport extends DSpaceRunnable<MetadataImportScriptConfiguration> { @Override public MetadataImportScriptConfiguration getScriptConfiguration() { return new DSpace().getServiceManager().getServiceByName("metadata-import", MetadataImportScriptConfiguration.class); }  void initMetadataImport(DSpaceCSV toImport); @Override void internalRun(); @Override MetadataImportScriptConfiguration getScriptConfiguration(); void setup(); List<BulkEditChange> runImport(Context c, boolean change,
                                          boolean useWorkflow,
                                          boolean workflowNotify,
                                          boolean useTemplate); DSpaceCSVLine resolveEntityRefs(Context c, DSpaceCSVLine line);  }
@Test(expected = ParseException.class) public void metadataImportWithoutEPersonParameterTest() throws IllegalAccessException, InstantiationException, ParseException { String fileLocation = new File(testProps.get("test.importcsv").toString()).getAbsolutePath(); String[] args = new String[] {"metadata-import", "-f", fileLocation, "-s"}; TestDSpaceRunnableHandler testDSpaceRunnableHandler = new TestDSpaceRunnableHandler(); ScriptService scriptService = ScriptServiceFactory.getInstance().getScriptService(); ScriptConfiguration scriptConfiguration = scriptService.getScriptConfiguration(args[0]); DSpaceRunnable script = null; if (scriptConfiguration != null) { script = scriptService.createDSpaceRunnableForScriptConfiguration(scriptConfiguration); } if (script != null) { script.initialize(args, testDSpaceRunnableHandler, null); script.run(); } }