@Test
public void shouldImportVdb() throws Exception {

    String tmpDirPath = System.getProperty("java.io.tmpdir");
    File tmpDir = new File(tmpDirPath);
    long timestamp = System.currentTimeMillis();
    myFileDir = new File(tmpDir, "myfile-" + timestamp);
    assertTrue(myFileDir.mkdir());
    File vdbSrcFile = new File(myFileDir, "vdbFile.xml");
    String sampleExample = TestUtilities.streamToString(TestUtilities.sampleExample());
    FileUtils.write(sampleExample.getBytes(), vdbSrcFile);
    assertTrue(vdbSrcFile.exists());
    Properties parameters = new Properties();
    parameters.setProperty(StorageConnector.FILES_HOME_PATH_PROPERTY, myFileDir.getAbsolutePath());
    parameters.setProperty(StorageConnector.FILE_PATH_PROPERTY, vdbSrcFile.getName());
    KomodoObject parent = _repo.komodoWorkspace(getTransaction());
    StorageReference reference = new StorageReference("file", parameters, DocumentType.VDB_XML);
    wsMgr.importArtifact(getTransaction(), parent, reference);
    assertTrue(parent.hasChild(getTransaction(), TestUtilities.SAMPLE_VDB_NAME));
}