### Question:
ActionAttributesBuilder implements Builder<ActionAttributes> { public void withConfigProperty(final String key, final String value) { ModifyOnce<String> mappedValue = this.configuration.get(key); if (mappedValue == null) { mappedValue = new ModifyOnce<>(value); this.configuration.put(key, mappedValue); } mappedValue.set(value); } private  ActionAttributesBuilder(final ModifyOnce<String> resourceManager,
                                    final ModifyOnce<Prepare> prepare,
                                    final ModifyOnce<Streaming> streaming,
                                    final ModifyOnce<Pipes> pipes,
                                    final List<String> jobXmls,
                                    final Map<String, ModifyOnce<String>> configuration,
                                    final ModifyOnce<String> configClass,
                                    final List<String> files,
                                    final List<String> archives,
                                    final List<Delete> deletes,
                                    final List<Mkdir> mkdirs,
                                    final List<Move> moves,
                                    final List<Chmod> chmods,
                                    final List<Touchz> touchzs,
                                    final List<Chgrp> chgrps,
                                    final ModifyOnce<String> javaOpts,
                                    final List<String> args,
                                    final ModifyOnce<String> nameNode,
                                    final ModifyOnce<Launcher> launcher,
                                    final ModifyOnce<Boolean> captureOutput); static ActionAttributesBuilder create(); static ActionAttributesBuilder createFromExisting(final ActionAttributes attributes); static ActionAttributesBuilder createFromAction(final Node action); void withResourceManager(final String resourceManager); void withNameNode(final String nameNode); void withJobXml(final String jobXml); void withoutJobXml(final String jobXml); void clearJobXmls(); void withConfigProperty(final String key, final String value); void withLauncher(final Launcher launcher); ActionAttributes build();  }### Answer:
@Test public void testSameConfigPropertyAddedTwiceThrows() { final ActionAttributesBuilder builder = getBuilderInstance(); builder.withConfigProperty(MAPRED_JOB_QUEUE_NAME, DEFAULT); expectedException.expect(IllegalStateException.class); builder.withConfigProperty(MAPRED_JOB_QUEUE_NAME, DEFAULT); }