StringGameVariant implements IGameVariant { @Override public String getLabel(final Translator translator) { return translator.translate(label); }  @Override String getLabel(final Translator translator);  }
@Test void givenTranslator_shouldTranslateLabel() { StringGameVariant gameVariant = new StringGameVariant("label", "value"); assertEquals("translation", gameVariant.getLabel(translator)); verify(translator, times(1)).translate("label"); }