public void test() throws SecurityException, NoSuchMethodException
{
Gson gson = new GsonBuilder().registerTypeAdapter(Variable.class, new VariableInstanceCreator()).registerTypeAdapter(Variable.class, new VariableSerialiser()).create();
Class<?> klass = HCTestTarget.class;
Method m = klass.getMethod("setInput", new Class<?>[]{Integer.class});
IntegerVariable v = IntegerVariable.parse(m);
Variable<?> p = v;
System.out.println(gson.toJson(p));
Solution s = new Solution();