Assert.assertNotNull(model);
Assert.assertTrue(model.isPorcelain());
List<String> toolArgs = new ArrayList<>();
toolArgs.addAll(Arrays.asList(toolName, "--output=" + dir.getAbsolutePath()));
toolArgs.addAll(Arrays.asList(otherArgs));
CeylonDocToolTool tool = pluginFactory.bindArguments(model, toolArgs);
Assert.assertEquals(0, dir.listFiles().length);
tool.run();
}