public void ensureSimpleScriptProcessWorks() {
IntegrationProject project = IntegrationProject.createNewProject("Test");
Operation op = new Operation("Op");
project.insertEntityUnderRoot(op);
op.setOperationType(ScriptOperationType.TYPE);
OperationPipeline pipeline = ScriptOperationType.TYPE.createNewTemplate();
Script script = new Script("S");
project.insertEntityUnderRoot(script);
((ScriptActivity) pipeline.getFirstActivity()).setContent(script);
op.setPipeline(pipeline);
ProcessFilter filter = new ProcessFilter(op);
assertTrue(filter.apply(op));
assertTrue(filter.apply(script));
}