title: Nifi testing : Input Port and Output Port
body: <p>I have a flow with one input and 2 output flows (happy path and failure path). I would like to test the flow, thinking to put message directly to the input flow and validate the output flows. Possible options are to use REST api or site-2-site with transaction ?. I managed to get to use site-to-site for write and read but i have noticed that output port is left with message even after consuming it (i did commit the transaction i.e .
  transaction.confirm() &amp; transaction.complete()).</p>
  
  <p>Anyone managed to get this working and can share the sample code ? please or any other way to test this ?</p>