[Java]: Moved MethodValuesSerializer from main to tests so no dependency on GSON.