### Question:
ArchetypeGenerateCommand extends AbstractMavenCommand { @Override public MavenRequest buildMavenRequest() { final MavenRequest mavenRequest = MavenProjectLoader.createMavenRequest(false); mavenRequest.setGoals(GOALS); mavenRequest.setInteractive(false); return mavenRequest; } ArchetypeGenerateCommand(final String baseDirectory,
                                    final GAV archetypeGAV,
                                    final GAV templateGAV); @Override MavenRequest buildMavenRequest(); @Override Properties buildUserProperties(); static final List<String> GOALS; static final String ARCHETYPE_GROUP_ID; static final String ARCHETYPE_ARTIFACT_ID; static final String ARCHETYPE_VERSION; static final String TEMPLATE_GROUP_ID; static final String TEMPLATE_ARTIFACT_ID; static final String TEMPLATE_VERSION; static final String ARCHETYPE_CATALOG; static final String INTERNAL_CATALOG; }### Answer:
@Test public void buildMavenRequestTest() { final ArchetypeGenerateCommand command = new ArchetypeGenerateCommand(BASE_DIRECTORY, createGav(), createGav()); final MavenRequest request = command.buildMavenRequest(); assertFalse(request.isInteractive()); assertThat(request.getGoals()).isEqualTo(ArchetypeGenerateCommand.GOALS); }