### Question:
KieEnumSelectElement implements IsElement { String getLabel(final T e) { return translationService.format(e.name()); } @Inject  KieEnumSelectElement(final View view,
                                final KieSelectElement kieSelectElement,
                                final TranslationService translationService); @PostConstruct void init(); @SuppressWarnings("unchecked") void setup(final T[] values,
                      final T initialValue,
                      final Consumer<T> onChange); T getValue(); @Override HTMLElement getElement();  }### Answer:
@Test public void testGetLabel() { doReturn("A").when(translationService).format(any()); final String label = kieEnumSelectElement.getLabel(TestEnum.FOO); assertEquals("A", label); assertEquals("A", label); }