MockNodeInstanceFactory factory = new MockNodeInstanceFactory( new MockNodeInstance( mockNode ) );
conf.getProcessNodeInstanceFactoryRegistry().register( mockNode.getClass(), factory );
WorkflowProcessImpl process = new WorkflowProcessImpl();
Node endNode = new EndNode();
endNode.setId( 1 );
endNode.setName( "end node" );
mockNode.setId( 2 );
new ConnectionImpl(mockNode, Node.CONNECTION_DEFAULT_TYPE, endNode, Node.CONNECTION_DEFAULT_TYPE);
process.addNode( mockNode );