### Question:
JsonIO { public List<FeatureExec> load(InputStream in) throws UnsupportedEncodingException { return load(in, "UTF8"); }  Gson createGson(); List<FeatureExec> load(InputStream in); List<FeatureExec> load(InputStream in, String charset);  }### Answer:
@Test @Parameters({ "/tzatziki/analysis/exec/gson/coffeemachine-exec.json"}) public void readAndWrite_should_lead_to_identity(String resource) throws Exception { InputStream in = getClass().getResourceAsStream(resource); String origin = IOUtils.toString(in, "UTF8"); in = getClass().getResourceAsStream(resource); List<FeatureExec> featureExecs = jsonIO.load(in); String json = toJson(gson, featureExecs).toString(); JSONAssert.assertEquals(origin, json, false); }