### Question:
VersionRuleParameterConverter implements ParameterConverter { @Override public Object convert(Object value) { String versionRule = String.valueOf(value); validate(versionRule); return versionRule; }  @Override Object convert(Object value);  }### Answer:
@Test void testConvertWithInvalidValueType() { assertThrows(SLException.class, () -> new VersionRuleParameterConverter().convert(false)); }
@Test void testConvertWithInvalidValue() { assertThrows(SLException.class, () -> new VersionRuleParameterConverter().convert("foo")); }
@Test void testConvert() { String versionRule = (String) new VersionRuleParameterConverter().convert("ALL"); assertEquals("ALL", versionRule); }