ActionSequenceAction implements IStreamProcessingAction, IStreamingAction, IVarArgsAction, IPostProcessingAction { @Override public List<IContentItem> getActionOutputContents() { return actionOutputContents; }  void setInputStream( InputStream arg0 ); void execute(); String getMimeType( String arg0 ); void setOutputStream( OutputStream arg0 ); void setVarArgs( Map<String, Object> arg0 ); @Override List<IContentItem> getActionOutputContents();  }
@Test public void testGetActionOutputContents() throws Exception { OutputStream outputStream = mock( OutputStream.class ); ActionSequenceAction action = new ActionSequenceAction(); action.setOutputStream( outputStream ); action.execute(); List<IContentItem> outputContents = action.getActionOutputContents(); assertNotNull( outputContents ); assertEquals( expectedContentItem, outputContents ); }