Assign extends AbstractBasicActivity<TAssign> implements IAssign { @Override public List<Copy> getCopies() { return Collections.unmodifiableList(copy); } Assign(TAssign a, IContainer parent); void setValidate(boolean value); boolean getValidate(); Copy addCopy(); @Override List<Copy> getCopies(); @Override void visit(IVisitor v);  }
@Test public void testCopyFromFile() throws Exception { InputStream resourceStream = getClass().getResourceAsStream("/activities/_2_0/activity-assign.bpel"); IProcess process = BpelFactory.loadProcess(resourceStream); IAssign a = (IAssign) process.getMainActivity(); assertEquals(2, a.getCopies().size()); }