text: var expect = require('chai').expect;
  var sinon = require("sinon");
  
  var index = require('../../../../../../lib/engine/flow/index');
  var events = require('../../../../../../lib/engine/flow/events');
  var node = require('../../../../../../lib/engine/flow/node');
  
  var DEFAULT_CONF = {
    driver: 'mock', 
    loglevel: 'WARN',
    serverIP: '192.168.100.1',
    socketServerPort: 8082,
    userKey: 'a2a9705fc33071cc212af979ad9e52d75bc096936fb28fe18d0a6b56067a6bf8',
    uuid: '76FA49A9-78D8-4AE5-82A3-EC960138E908',
    device: '',
    runtime: 'node',
  };
  
  var reportId,reportValue;
  
  function report (id,value){
    reportId = id;
    reportValue = value;
  }
  
  
  function nodeInputChanged(id, portName, value){
  
  }
  
  function nodeOutputChanged(id, portName, value){
  
  }
  
  
  describe('VIRTUAL_DC_MOTORD node', function(){
    var enine;
    var id;
    var _activeNodeCache;
  
    before(function() {
      engine = index.create(DEFAULT_CONF);
      id = engine.addNode("VIRTUAL_DC_MOTOR"); 
      engine.callMethod(id,'report',report); 
      engine.on(events.NODEOUTPUT, nodeOutputChanged);
      engine.on(events.NODEINPUT, nodeInputChanged);
      _activeNodeCache = engine.getActiveNodeCache();
    });
  
    after(function() {
      engine.removeNode(id);
      engine.removeListener(events.NODEOUTPUT, nodeOutputChanged);
      engine.removeListener(events.NODEINPUT, nodeInputChanged);
      engine.stop();
      engine = null;
    });
  
    it('call run', function() {
      _activeNodeCache[id].run(); 
    });
  });
  
  
  
  