### Question:
MapReduceActionBuilder extends NodeBuilderBaseImpl<MapReduceActionBuilder> implements Builder<MapReduceAction> { public MapReduceActionBuilder clearArchives() { attributesBuilder.clearArchives(); return this; } MapReduceActionBuilder(final Node action,
                           final ActionAttributesBuilder attributesBuilder); static MapReduceActionBuilder create(); static MapReduceActionBuilder createFromExistingAction(final Node action); MapReduceActionBuilder withResourceManager(final String resourceManager); MapReduceActionBuilder withNameNode(final String nameNode); MapReduceActionBuilder withPrepare(final Prepare prepare); MapReduceActionBuilder withStreaming(final Streaming streaming); MapReduceActionBuilder withPipes(final Pipes pipes); MapReduceActionBuilder withJobXml(final String jobXml); MapReduceActionBuilder withoutJobXml(final String jobXml); MapReduceActionBuilder clearJobXmls(); MapReduceActionBuilder withConfigProperty(final String key, final String value); MapReduceActionBuilder withConfigClass(final String configClass); MapReduceActionBuilder withFile(final String file); MapReduceActionBuilder withoutFile(final String file); MapReduceActionBuilder clearFiles(); MapReduceActionBuilder withArchive(final String archive); MapReduceActionBuilder withoutArchive(final String archive); MapReduceActionBuilder clearArchives(); @Override MapReduceAction build();  }### Answer:
@Test public void testClearArchives() { final MapReduceActionBuilder builder = getBuilderInstance(); for (final String archive : ARCHIVES) { builder.withArchive(archive); } builder.clearArchives(); final MapReduceAction mrAction = builder.build(); final List<String> archivesList = mrAction.getArchives(); assertEquals(0, archivesList.size()); }