### Question:
LabelAnnotations implements FluentLabelProvider { @SuppressWarnings("PMD.MethodReturnsInternalArray") @Override public String[] getLabelHints() { return labelHints; } LabelAnnotations(Field field); @Override String getLabel(); @SuppressWarnings("PMD.MethodReturnsInternalArray") @Override String[] getLabelHints();  }### Answer:
@Test public void shouldSetLabelHintIfLabelHintAnnotationIsPresent() throws NoSuchFieldException { LabelAnnotations labelAnnotations = createLabelAnnotationsForField("fieldWithLabelHint"); assertThat(labelAnnotations.getLabelHints()).containsExactly("labelhint", "otherlabelhint"); }
@Test public void shouldNotSetLabelHintIfLabelHintAnnotationIsNotPresent() throws NoSuchFieldException { LabelAnnotations labelAnnotations = createLabelAnnotationsForField("fieldWithoutLabelHint"); assertThat(labelAnnotations.getLabelHints()).isNull(); }