@Test
public void testCopyFromPlanWithParameters() throws Exception {
Plan plan = plan("copy users from '/path/to/file.ext' with (bulk_size=30, compression='gzip', shared=true)");
Iterator<PlanNode> iterator = plan.iterator();
PlanNode planNode = iterator.next();
assertThat(planNode, instanceOf(FileUriCollectNode.class));
FileUriCollectNode collectNode = (FileUriCollectNode)planNode;
SourceIndexWriterProjection indexWriterProjection = (SourceIndexWriterProjection) collectNode.projections().get(0);
assertThat(indexWriterProjection.bulkActions(), is(30));
assertThat(collectNode.compression(), is("gzip"));