@Test
public void shouldThrowScannerExceptionIfAnErrorOccurs() throws Exception {

	URL url = File.createTempFile("vraptor", "test").getParentFile().toURI().toURL();
	when(resolver.findWebInfClassesLocation()).thenReturn(url);
	try {
	Collection<String> components = asList("a.resource.that.nobody.can.find");
		generator.generate(components, resolver);
		fail("Should throw ScannerException");
	} catch (ScannerException e) {
	}
}