### Question:
DecisionTableDefaultValueUtilities { public static String getNewOutputClauseName(final DecisionTable dtable) { return OUTPUT_CLAUSE_PREFIX + getMaxUnusedOutputClauseIndex(dtable); }  static String getNewInputClauseName(final DecisionTable dtable); static String getNewOutputClauseName(final DecisionTable dtable); static String getNewRuleAnnotationClauseName(final DecisionTable decisionTable); static final String INPUT_CLAUSE_PREFIX; static final String INPUT_CLAUSE_UNARY_TEST_TEXT; static final String OUTPUT_CLAUSE_PREFIX; static final String OUTPUT_CLAUSE_EXPRESSION_TEXT; static final String RULE_DESCRIPTION; static final String RULE_ANNOTATION_CLAUSE_PREFIX; static final String RULE_ANNOTATION_CLAUSE_EXPRESSION_TEXT; }### Answer:
@Test public void testGetNewOutputClauseName() { final OutputClause outputClause1 = new OutputClause(); dtable.getOutput().add(outputClause1); outputClause1.setName(DecisionTableDefaultValueUtilities.getNewOutputClauseName(dtable)); assertThat(outputClause1.getName()).isEqualTo(DecisionTableDefaultValueUtilities.OUTPUT_CLAUSE_PREFIX + "1"); final OutputClause outputClause2 = new OutputClause(); dtable.getOutput().add(outputClause2); outputClause2.setName(DecisionTableDefaultValueUtilities.getNewOutputClauseName(dtable)); assertThat(outputClause2.getName()).isEqualTo(DecisionTableDefaultValueUtilities.OUTPUT_CLAUSE_PREFIX + "2"); }
@Test public void testGetNewOutputClauseNameWithExistingOutputClauses() { final OutputClause outputClause1 = new OutputClause(); dtable.getOutput().add(outputClause1); outputClause1.setName("output"); final OutputClause outputClause2 = new OutputClause(); dtable.getOutput().add(outputClause2); outputClause2.setName(DecisionTableDefaultValueUtilities.getNewOutputClauseName(dtable)); assertThat(outputClause2.getName()).isEqualTo(DecisionTableDefaultValueUtilities.OUTPUT_CLAUSE_PREFIX + "1"); }
@Test public void testGetNewOutputClauseNameWithDeletion() { final OutputClause outputClause1 = new OutputClause(); dtable.getOutput().add(outputClause1); outputClause1.setName(DecisionTableDefaultValueUtilities.getNewOutputClauseName(dtable)); assertThat(outputClause1.getName()).isEqualTo(DecisionTableDefaultValueUtilities.OUTPUT_CLAUSE_PREFIX + "1"); final OutputClause outputClause2 = new OutputClause(); dtable.getOutput().add(outputClause2); outputClause2.setName(DecisionTableDefaultValueUtilities.getNewOutputClauseName(dtable)); assertThat(outputClause2.getName()).isEqualTo(DecisionTableDefaultValueUtilities.OUTPUT_CLAUSE_PREFIX + "2"); dtable.getOutput().remove(outputClause1); final OutputClause outputClause3 = new OutputClause(); dtable.getOutput().add(outputClause3); outputClause3.setName(DecisionTableDefaultValueUtilities.getNewOutputClauseName(dtable)); assertThat(outputClause3.getName()).isEqualTo(DecisionTableDefaultValueUtilities.OUTPUT_CLAUSE_PREFIX + "3"); }