### Question:
VariableMapper { public Serializable getSerializableValue(String className) { try { return (Serializable) deserializer.convertValue(variable.getValue(), Class.forName(className)); } catch (IllegalArgumentException e) { throw new APIException(new _("%value% is not a valid value for %className%", new Arg("value", variable.getValue()), new Arg("className", className))); } catch (ClassNotFoundException e) { throw new APIException(new _("%className% not found. Only jdk types are supported", new Arg("className", className))); } catch (ClassCastException e) { throw new APIException(new _("%className% is not Serializable", new Arg("className", className))); } } VariableMapper(Variable variable, JacksonDeserializer jacksonDeserializer); Serializable getSerializableValue(String className); String getName(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test(expected = APIException.class) public void getSerializableValue_throw_exception_if_class_is_not_in_classpath() throws Exception { new VariableMapper(new Variable(), jacksonDeserializer).getSerializableValue("a.class.not.in.classpath"); }