### Question:
ContributionServiceHelper { static public Map<String, Object> splitContent(String content, CompositionFormat format) { switch (format) { case JSON: return new CanonicalJson().unmarshalToMap(content); case XML: default: throw new UnexpectedSwitchCaseException(format); } }  static Map<String, Object> splitContent(String content, CompositionFormat format); static List<Version> extractVersionObjects(ArrayList listVersions, CompositionFormat format); static RMObject unmarshalMapContentToRmObject(LinkedHashMap content, CompositionFormat format); static List<Version> parseVersions(String content, CompositionFormat format); static AuditDetails parseAuditDetails(String content, CompositionFormat format);  }### Answer:
@Test public void splitContent() throws IOException { InputStream stream = ContributionTestDataCanonicalJson.ONE_ENTRY_COMPOSITION.getStream(); assertNotNull(stream); String streamString = IOUtils.toString(stream, UTF_8); Map<String, Object> splitContent = ContributionServiceHelper.splitContent(streamString, CompositionFormat.JSON); splitContentCheck(splitContent); InputStream stream2 = ContributionTestDataCanonicalJson.TWO_ENTRIES_COMPOSITION.getStream(); assertNotNull(stream2); String streamString2 = IOUtils.toString(stream2, UTF_8); Map<String, Object> splitContent2 = ContributionServiceHelper.splitContent(streamString2, CompositionFormat.JSON); splitContentCheck(splitContent2); }