### Question:
JavaActionBuilder extends NodeBuilderBaseImpl<JavaActionBuilder> implements Builder<JavaAction> { public JavaActionBuilder clearArgs() { this.attributesBuilder.clearArgs(); return this; } private  JavaActionBuilder(final Node action,
                              final ActionAttributesBuilder attributesBuilder,
                              final ModifyOnce<String> mainClass,
                              final ModifyOnce<String> javaOptsString,
                              final List<String> javaOpts); static JavaActionBuilder create(); static JavaActionBuilder createFromExistingAction(final JavaAction action); static JavaActionBuilder createFromExistingAction(final Node action); JavaActionBuilder withResourceManager(final String resourceManager); JavaActionBuilder withNameNode(final String nameNode); JavaActionBuilder withPrepare(final Prepare prepare); JavaActionBuilder withLauncher(final Launcher launcher); JavaActionBuilder withJobXml(final String jobXml); JavaActionBuilder withoutJobXml(final String jobXml); JavaActionBuilder clearJobXmls(); JavaActionBuilder withConfigProperty(final String key, final String value); JavaActionBuilder withMainClass(final String mainClass); JavaActionBuilder withJavaOptsString(final String javaOptsString); JavaActionBuilder withJavaOpt(final String javaOpt); JavaActionBuilder withoutJavaOpt(final String javaOpt); JavaActionBuilder clearJavaOpts(); JavaActionBuilder withArg(final String arg); JavaActionBuilder withoutArg(final String arg); JavaActionBuilder clearArgs(); JavaActionBuilder withFile(final String file); JavaActionBuilder withoutFile(final String file); JavaActionBuilder clearFiles(); JavaActionBuilder withArchive(final String archive); JavaActionBuilder withoutArchive(final String archive); JavaActionBuilder clearArchives(); JavaActionBuilder withCaptureOutput(final Boolean captureOutput); @Override JavaAction build();  }### Answer:
@Test public void testClearArgs() { final JavaActionBuilder builder = getBuilderInstance(); for (final String file : ARGS) { builder.withArg(file); } builder.clearArgs(); final JavaAction action = builder.build(); final List<String> argList = action.getArgs(); assertEquals(0, argList.size()); }