	@Test
	public void testDocProcessor() throws Exception {

		final String[] args = {
				"-i", "src/test/resources/src/DocTest.java",
				"-o", "target/spooned/",
				"-c" // It's mandatory here to enable comments
		};

		final Launcher launcher = new Launcher();
		launcher.setArgs(args);
		launcher.run();

		final Factory factory = launcher.getFactory();
		final ProcessingManager processingManager = new QueueProcessingManager(factory);
		final DocProcessor processor = new DocProcessor();
		processingManager.addProcessor(processor);
		processingManager.process(factory.Class().getAll());

		// implicit constructor is also counted
		assertThat(processor.undocumentedElements.size(), is(4));
	}