@Test
public void testApply_passesCollapseVarargOptionToTypeFilter() {

  Cookbook cookbook = new Cookbook("test", new ArrayList<>(), new ArrayList<>());
  Filter filter = new JavaParamFilter(cookbook, javaTypeFilter, javaIdentifierFilter);
  Map param = new HashMap();
  param.put("name", "foo");
  param.put("type", "int[]");
  filter.apply(param, true);
  verify(javaTypeFilter).apply(param.get("type"), true);
}