@Test
public void testApply_combinesTypeAndNameFromFilters() {

  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[]");
  when(javaTypeFilter.apply(param.get("type"), false)).thenReturn("type");
  when(javaIdentifierFilter.apply(param.get("name"))).thenReturn("identifier");
  assertEquals("type identifier", filter.apply(param));
}