private FileMonitor monitor;
private File tmpdir;
protected void setUp() throws Exception {
events = new HashMap<Integer, FileEvent>();
final FileListener listener = new FileListener() {
public void fileChanged(FileEvent e) {
events.put(new Integer(e.getType()), e);
}
};
monitor = FileMonitor.getInstance();