### Question:
BuiltinAggregatorUtils { public BuiltinAggregator toEnum(final String value) { if (value.equals(translationService.getTranslation(DMNEditorConstants.DecisionTableEditor_NullBuiltinAggregator))) { return null; } return BuiltinAggregator.fromValue(value); } BuiltinAggregatorUtils(); @Inject  BuiltinAggregatorUtils(final TranslationService translationService); List<BuiltinAggregator> getAllValues(); String toString(final BuiltinAggregator aggregator); BuiltinAggregator toEnum(final String value);  }### Answer:
@Test public void testToEnum() { assertThat(builtinAggregatorUtils.toEnum(DMNEditorConstants.DecisionTableEditor_NullBuiltinAggregator)).isNull(); assertThat(builtinAggregatorUtils.toEnum(BuiltinAggregator.COUNT.value())).isEqualTo(BuiltinAggregator.COUNT); assertThat(builtinAggregatorUtils.toEnum(BuiltinAggregator.MAX.value())).isEqualTo(BuiltinAggregator.MAX); assertThat(builtinAggregatorUtils.toEnum(BuiltinAggregator.MIN.value())).isEqualTo(BuiltinAggregator.MIN); assertThat(builtinAggregatorUtils.toEnum(BuiltinAggregator.SUM.value())).isEqualTo(BuiltinAggregator.SUM); }