### Question:
DecisionTableDefaultValueUtilities { public static String getNewRuleAnnotationClauseName(final DecisionTable decisionTable) { return RULE_ANNOTATION_CLAUSE_PREFIX + getMaxUnusedRuleAnnotationClauseIndex(decisionTable); }  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 testGetNewRuleAnnotationClauseName() { final RuleAnnotationClause ruleAnnotationClause1 = new RuleAnnotationClause(); dtable.getAnnotations().add(ruleAnnotationClause1); ruleAnnotationClause1.getName().setValue(DecisionTableDefaultValueUtilities.getNewRuleAnnotationClauseName(dtable)); assertThat(ruleAnnotationClause1.getName().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.RULE_ANNOTATION_CLAUSE_PREFIX + "1"); final RuleAnnotationClause ruleAnnotationClause2 = new RuleAnnotationClause(); dtable.getAnnotations().add(ruleAnnotationClause2); ruleAnnotationClause2.getName().setValue(DecisionTableDefaultValueUtilities.getNewRuleAnnotationClauseName(dtable)); assertThat(ruleAnnotationClause2.getName().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.RULE_ANNOTATION_CLAUSE_PREFIX + "2"); }
@Test public void testGetNewRuleAnnotationClauseNameWithExistingAnnotationClause() { final RuleAnnotationClause ruleAnnotationClause1 = new RuleAnnotationClause(); dtable.getAnnotations().add(ruleAnnotationClause1); ruleAnnotationClause1.getName().setValue("something"); final RuleAnnotationClause ruleAnnotationClause2 = new RuleAnnotationClause(); dtable.getAnnotations().add(ruleAnnotationClause2); ruleAnnotationClause2.getName().setValue(DecisionTableDefaultValueUtilities.getNewRuleAnnotationClauseName(dtable)); assertThat(ruleAnnotationClause2.getName().getValue()).isEqualTo(DecisionTableDefaultValueUtilities.RULE_ANNOTATION_CLAUSE_PREFIX + "1"); }