### Question:
DecisionTableDefaultValueUtilities { public static String getNewInputClauseName(final DecisionTable dtable) { return INPUT_CLAUSE_PREFIX + getMaxUnusedInputClauseIndex(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 testGetNewInputClauseName() { final InputClause inputClause1 = new InputClause() {{ setInputExpression(new InputClauseLiteralExpression()); }}; dtable.getInput().add(inputClause1); inputClause1.getInputExpression().getText().setValue(DecisionTableDefaultValueUtilities.getNewInputClauseName(dtable)); assertThat(inputClause1.getInputExpression().getText().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.INPUT_CLAUSE_PREFIX + "1"); final InputClause inputClause2 = new InputClause() {{ setInputExpression(new InputClauseLiteralExpression()); }}; dtable.getInput().add(inputClause2); inputClause2.getInputExpression().getText().setValue(DecisionTableDefaultValueUtilities.getNewInputClauseName(dtable)); assertThat(inputClause2.getInputExpression().getText().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.INPUT_CLAUSE_PREFIX + "2"); }
@Test public void testGetNewInputClauseNameWithExistingInputClauses() { final InputClause inputClause1 = new InputClause() {{ setInputExpression(new InputClauseLiteralExpression()); }}; dtable.getInput().add(inputClause1); inputClause1.getInputExpression().getText().setValue("input"); final InputClause inputClause2 = new InputClause() {{ setInputExpression(new InputClauseLiteralExpression()); }}; dtable.getInput().add(inputClause2); inputClause2.getInputExpression().getText().setValue(DecisionTableDefaultValueUtilities.getNewInputClauseName(dtable)); assertThat(inputClause2.getInputExpression().getText().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.INPUT_CLAUSE_PREFIX + "1"); }
@Test public void testGetNewInputClauseNameWithDeletion() { final InputClause inputClause1 = new InputClause() {{ setInputExpression(new InputClauseLiteralExpression()); }}; dtable.getInput().add(inputClause1); inputClause1.getInputExpression().getText().setValue(DecisionTableDefaultValueUtilities.getNewInputClauseName(dtable)); assertThat(inputClause1.getInputExpression().getText().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.INPUT_CLAUSE_PREFIX + "1"); final InputClause inputClause2 = new InputClause() {{ setInputExpression(new InputClauseLiteralExpression()); }}; dtable.getInput().add(inputClause2); inputClause2.getInputExpression().getText().setValue(DecisionTableDefaultValueUtilities.getNewInputClauseName(dtable)); assertThat(inputClause2.getInputExpression().getText().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.INPUT_CLAUSE_PREFIX + "2"); dtable.getInput().remove(inputClause1); final InputClause inputClause3 = new InputClause() {{ setInputExpression(new InputClauseLiteralExpression()); }}; dtable.getInput().add(inputClause3); inputClause3.getInputExpression().getText().setValue(DecisionTableDefaultValueUtilities.getNewInputClauseName(dtable)); assertThat(inputClause3.getInputExpression().getText().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.INPUT_CLAUSE_PREFIX + "3"); }