### Question:
SMAAPresentation { public JsonNode getJSON() { SMAASerializer<Alternative, AnalysisType> serializer = new SMAASerializer<Alternative, AnalysisType>(d_smaaf.createSMAAModel(), d_a, d_smaaf); return serializer.getRootNode(); } SMAAPresentation(AnalysisType a); void startSMAA(); ValueHolder<Boolean> getInitializedModel(); PreferencePresentationModel getSmaaPreferenceModel(); PreferencePresentationModel getPreferencePresentationModel(); SMAA2ResultsTableModel getRankAcceptabilitiesTableModel(); RankAcceptabilitiesDataset getRankAcceptabilityDataSet(); CentralWeightsDataset getCentralWeightsDataSet(); CentralWeightTableModel getCentralWeightsTableModel(); TaskProgressModel getTaskProgressModel(); OutcomeMeasure getOutcomeMeasureForCriterion(CardinalCriterion crit); AbstractBenefitRiskSMAAFactory<Alternative> getSMAAFactory(); JsonNode getJSON(); void saveSmaa(String filename);  }### Answer:
@Test public void testJSONSerialization() throws JsonGenerationException, JsonMappingException, IOException { JsonNode serializedJSON = d_smaaPresentation.getJSON(); assertNotNull(serializedJSON.get("title")); JsonNode criteria = serializedJSON.get("criteria"); assertNotNull(criteria); assertNotNull(criteria.get("ham-d-responders")); JsonNode alternatives = serializedJSON.get("alternatives"); assertNotNull(alternatives); assertNotNull(alternatives.get("fluoxetine")); assertNotNull(serializedJSON.get("performanceTable")); }