@Test
public void shouldScanWEBINFClasses() {

when(classPathResolver.findBasePackages()).thenReturn(Arrays.asList(""));
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
when(classPathResolver.getClassLoader()).thenReturn(classLoader);
	when(classPathResolver.findWebInfClassesLocation()).thenReturn(classLoader.getResource("br/com/caelum/vraptor/ioc/"));
ScannotationComponentScanner scanner = new ScannotationComponentScanner();
assertThat(scanner.scan(classPathResolver), hasItem(ResourceInTheClasspath.class.getName()));
}