### Question:
RuleAnnotationClauseTextConverter { public static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation) { if (ruleAnnotation == null) { return null; } final RuleAnnotationClauseText text = new RuleAnnotationClauseText(); text.setText(new Text(ruleAnnotation.getText())); return text; }  static RuleAnnotationClauseText wbFromDMN(final RuleAnnotation ruleAnnotation); static RuleAnnotation dmnFromWB(final RuleAnnotationClauseText wb);  }### Answer:
@Test public void testWbFromDMN() { final String text = "text"; when(ruleAnnotation.getText()).thenReturn(text); final RuleAnnotationClauseText converted = RuleAnnotationClauseTextConverter.wbFromDMN(ruleAnnotation); assertEquals(text, converted.getText().getValue()); }
@Test public void testWbFromDMNWhenIsNull() { final RuleAnnotationClauseText converted = RuleAnnotationClauseTextConverter.wbFromDMN(null); assertNull(converted); }