### Question:
ExerciseList { public List<Exercise> getExercises() { for (Exercise e : course.getExercises()) { e.setCourseName(course.getName()); } return course.getExercises(); }  List<Exercise> getExercises(); void setCourse(Course course);  }### Answer:
@Test public void canSerializeInto() { String json = "{\"api_version\":7,\"course\":{\"id\":6,\"name\":\"cpro\",\"details_url\":\"http: ExerciseList exerciseList = new Gson().fromJson(json, ExerciseList.class); assertNotNull(exerciseList.getExercises()); }