### Question:
RuleAnnotationClauseText extends DMNElement implements HasText { public RuleAnnotationClauseText copy() { final RuleAnnotationClauseText clonedRuleAnnotationClauseText = new RuleAnnotationClauseText(); clonedRuleAnnotationClauseText.text = Optional.ofNullable(text).map(Text::copy).orElse(null); return clonedRuleAnnotationClauseText; } RuleAnnotationClauseText(); RuleAnnotationClauseText copy(); @Override Text getText(); @Override void setText(final Text text); @Override boolean equals(final Object o); @Override int hashCode();  }### Answer:
@Test public void testCopy() { final RuleAnnotationClauseText source = new RuleAnnotationClauseText(); source.setText(new Text(TEXT_VALUE)); final RuleAnnotationClauseText target = source.copy(); assertNotNull(target); assertEquals(TEXT_VALUE, target.getText().getValue()); }