### Question:
JavaScriptGenerator { public GenerationUnit generateAll(Class<?> javaClass, SingleFileGenerator singleFileGenerator, Optional<DependencyCollector> dependencyCollector, Optional<? extends ClassLoader> classLoader, Optional<OrderSorter> orderSorter, Optional<LibraryDetector> libraryDetector, GenerationRoots generationRoots) { return generateAll(Lists.<Class<?>>newArrayList(javaClass), singleFileGenerator, dependencyCollector, classLoader, orderSorter, libraryDetector, generationRoots); }  GenerationUnit generate(Class<?> javaClass, SingleFileGenerator singleFileGenerator,
            Optional<DependencyCollector> dependencyCollector, Optional<? extends ClassLoader> classLoader, 
            Optional<OrderSorter> orderSorter, Optional<LibraryDetector> libraryDetector, 
            GenerationRoots generationRoots); GenerationUnit generate(Class<?> javaClass, SingleFileGenerator singleFileGenerator,
            Optional<DependencyCollector> dependencyCollector, Optional<? extends ClassLoader> classLoader, 
            Optional<OrderSorter> orderSorter, Optional<LibraryDetector> libraryDetector, 
            GenerationRoots generationRoots, GenerationUnit unit); GenerationUnit generateAll(Class<?> javaClass, SingleFileGenerator singleFileGenerator,
            Optional<DependencyCollector> dependencyCollector, Optional<? extends ClassLoader> classLoader, 
            Optional<OrderSorter> orderSorter, Optional<LibraryDetector> libraryDetector, GenerationRoots generationRoots); GenerationUnit generateAll(List<Class<?>> javaClasses, SingleFileGenerator singleFileGenerator,
            Optional<DependencyCollector> dependencyCollector, Optional<? extends ClassLoader> classLoader, 
            Optional<OrderSorter> orderSorter, Optional<LibraryDetector> libraryDetector, GenerationRoots generationRoots);  }### Answer:
@Test public void all() { GenerationUnit unit = generator.generateAll(TestWebPage.class, singleFileGenerator, Optional.<DependencyCollector>absent(), Optional.of(classLoader), Optional.<OrderSorter>absent(), Optional.<LibraryDetector>absent(), generationRoots); assertTrue(unit.visitedClassesContains(TestWebPage.class.getName())); assertTrue(unit.visitedClassesContains(BaseWebPage.class.getName())); assertTrue(unit.isMissingDependenciesEmpty()); assertEquals(unit.getGenerationResults().size(), 2); }