@Override
    public boolean isValid(ParameterValue value) {
        return choices.contains(((StringParameterValue) value).getValue());
    }
@Test
    @Issue("JENKINS-62889")
    public void checkValue_Invalid() {
        String stringValue = "single";
        String[] choices = new String[]{stringValue};
        ChoiceParameterDefinition parameterDefinition = new ChoiceParameterDefinition("name", choices, "description");
        StringParameterValue parameterValue = new StringParameterValue("choice", "invalid");
        assertFalse(parameterDefinition.isValid(parameterValue));
    }