### Question:
OSMImportOp extends AbstractGeoGigOp<Optional<OSMReport>> { public OSMImportOp setDataSource(String urlOrFilepath) { this.urlOrFilepath = urlOrFilepath; return this; }  OSMImportOp setFilter(String filter); OSMImportOp setMessage(String message); OSMImportOp setDownloadFile(File saveFile); OSMImportOp setNoRaw(boolean noRaw); OSMImportOp setMapping(Mapping mapping); OSMImportOp setKeepFile(boolean keepFile); OSMImportOp setAdd(boolean add); OSMImportOp setDataSource(String urlOrFilepath);  }### Answer:
@Test public void testImport() throws Exception { String filename = getClass().getResource("ways.xml").getFile(); File file = new File(filename); geogig.command(OSMImportOp.class).setDataSource(file.getAbsolutePath()).call(); long unstaged = geogig.getRepository().workingTree().countUnstaged("node").featureCount(); assertTrue(unstaged > 0); unstaged = geogig.getRepository().workingTree().countUnstaged("way").featureCount(); assertTrue(unstaged > 0); }