esSetup.execute(deleteAll(), createIndex("users").withSettings(
fromClassPath("essetup/settings/test_a.json")).withMapping("d",
fromClassPath("essetup/mappings/test_a.json")));
// run import with relative directory
ImportResponse response = executeImportRequest("{\"directory\": \"myExport\"}");
List<Map<String, Object>> imports = getImports(response);
assertEquals(2, imports.size());
String regex = "\\[\\{file_name=(.*)/nodes/(\\d)/myExport/export.(\\d).users.json, successes=1, failures=0\\}\\]";
assertTrue(imports.get(0).get("imported_files").toString().matches(regex));
assertTrue(imports.get(1).get("imported_files").toString().matches(regex));