@Test
public void testDoDeploy() throws Exception {

    assertNull(dataSetDefRegistry.getDataSetDef("salesPerYearAutoDeploy"));
    dataSetDefDeployer.deploy(dataSetsDir);
    FileOutputStream doDeploy = new FileOutputStream(new File(dataSetsDir, "salesPerYear.dset.deploy"));
    doDeploy.write("".getBytes());
    doDeploy.flush();
    doDeploy.close();
    Thread.sleep(2000);
    DataSetDef def = dataSetDefRegistry.getDataSetDef("salesPerYearAutoDeploy");
    assertNotNull(def);
    verify(registryListener).onDataSetDefRegistered(def);
}