### Question:
DockerAssemblyConfigurationSource implements AssemblerConfigurationSource { @Override public List<MavenProject> getReactorProjects() { return context.getReactorProjects(); } DockerAssemblyConfigurationSource(MavenBuildContext context, BuildDirs buildDirs, AssemblyConfiguration assemblyConfig); @Override String[] getDescriptors(); @Override String[] getDescriptorReferences(); @Override File getOutputDirectory(); @Override File getWorkingDirectory(); @Override File getTemporaryRootDirectory(); @Override String getFinalName(); @Override ArtifactRepository getLocalRepository(); MavenFileFilter getMavenFileFilter(); @Override List<MavenProject> getReactorProjects(); @Override List<ArtifactRepository> getRemoteRepositories(); @Override MavenSession getMavenSession(); @Override MavenArchiveConfiguration getJarArchiveConfiguration(); @Override String getEncoding(); @Override String getEscapeString(); @Override List<String> getDelimiters(); @Nonnull FixedStringSearchInterpolator getCommandLinePropsInterpolator(); @Nonnull FixedStringSearchInterpolator getEnvInterpolator(); @Nonnull FixedStringSearchInterpolator getRepositoryInterpolator(); @Nonnull FixedStringSearchInterpolator getMainProjectInterpolator(); @Override MavenProject getProject(); @Override File getBasedir(); @Override boolean isIgnoreDirFormatExtensions(); @Override boolean isDryRun(); @Override List<String> getFilters(); @Override boolean isIncludeProjectBuildFilters(); @Override File getDescriptorSourceDirectory(); @Override File getArchiveBaseDirectory(); @Override String getTarLongFileMode(); @Override File getSiteDirectory(); @Override boolean isAssemblyIdAppended(); @Override boolean isIgnoreMissingDescriptor(); @Override String getArchiverConfig(); @Override MavenReaderFilter getMavenReaderFilter(); @Override boolean isUpdateOnly(); @Override boolean isUseJvmChmod(); @Override boolean isIgnorePermissions();  }### Answer:
@Test public void testReactorProjects() { MavenProject reactorProject1 = new MavenProject(); reactorProject1.setFile(new File("../reactor-1")); MavenProject reactorProject2 = new MavenProject(); reactorProject2.setFile(new File("../reactor-2")); MavenBuildContext buildContext = new MavenBuildContext.Builder() .sourceDirectory("/src/docker") .outputDirectory("/output/docker") .reactorProjects(Arrays.asList(reactorProject1, reactorProject2)) .build(); DockerAssemblyConfigurationSource source = new DockerAssemblyConfigurationSource(buildContext,null,null); assertEquals(2,source.getReactorProjects().size()); }