import org.drools.workflow.core.node.EndNode;
public class EndNodeInstanceTest extends TestCase {
public void testEndNode() {
RuleBaseConfiguration conf = new RuleBaseConfiguration();
RuleBase ruleBase = RuleBaseFactory.newRuleBase( conf );
StatefulSession session = ruleBase.newStatefulSession();
MockNode mockNode = new MockNode();
MockNodeInstanceFactory factory = new MockNodeInstanceFactory( new MockNodeInstance( mockNode ) );
conf.getProcessNodeInstanceFactoryRegistry().register( mockNode.getClass(), factory );
WorkflowProcessImpl process = new WorkflowProcessImpl();
Node endNode = new EndNode();
endNode.setId( 1 );