test_class.declarator: translator
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private Translator translator;
test_class.type: Translator
test_class.var_name: translator
test_class.file: gazeplay-games-commons/src/test/java/net/gazeplay/commons/gamevariants/EnumGameVariantTest.java
test_class.identifier: EnumGameVariantTest
test_case.body: @Test
      void givenTranslator_shouldTranslateLabel() {
          EnumGameVariant<TestEnum> gameVariant = new EnumGameVariant<>(TestEnum.TEST1, Object::toString);
          assertEquals("translation", gameVariant.getLabel(translator));
          verify(translator, times(1)).translate("TEST1");
      }
test_case.class_method_signature: EnumGameVariantTest.givenTranslator_shouldTranslateLabel()
test_case.full_signature: @Test void givenTranslator_shouldTranslateLabel()
test_case.identifier: givenTranslator_shouldTranslateLabel
test_case.invocations: assertEquals getLabel translate verify times
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void givenTranslator_shouldTranslateLabel()
focal_class.declarator: enumValue
focal_class.modifier: private final
focal_class.original_string: private final K enumValue;
focal_class.type: K
focal_class.var_name: enumValue
focal_class.declarator: extractLabelCodeFunction
focal_class.modifier: private final
focal_class.original_string: private final Function<K, String> extractLabelCodeFunction;
focal_class.type: Function<K, String>
focal_class.var_name: extractLabelCodeFunction
focal_class.file: gazeplay-games-commons/src/main/java/net/gazeplay/commons/gamevariants/EnumGameVariant.java
focal_class.identifier: EnumGameVariant
focal_class.interfaces: implements IGameVariant
focal_class.class_method_signature: EnumGameVariant.getLabel(final Translator translator)
focal_class.full_signature: @Override public String getLabel(final Translator translator)
focal_class.identifier: getLabel
focal_class.modifiers: @Override public
focal_class.parameters: (final Translator translator)
focal_class.return: String
focal_class.signature: String getLabel(final Translator translator)
focal_method.body: @Override
      public String getLabel(final Translator translator) {
          return translator.translate(extractLabelCodeFunction.apply(enumValue));
      }
focal_method.class_method_signature: EnumGameVariant.getLabel(final Translator translator)
focal_method.full_signature: @Override public String getLabel(final Translator translator)
focal_method.identifier: getLabel
focal_method.invocations: translate apply
focal_method.modifiers: @Override public
focal_method.parameters: (final Translator translator)
focal_method.return: String
focal_method.signature: String getLabel(final Translator translator)