### Question:
ContributionServiceHelper { public static RMObject unmarshalMapContentToRmObject(LinkedHashMap content, CompositionFormat format) { switch (format) { case JSON: String json = null; try { json = JacksonUtil.getObjectMapper().writeValueAsString(content); } catch (JsonProcessingException e) { throw new IllegalArgumentException("Error while processing given json input: " + e.getMessage()); } return new CanonicalJson().unmarshal(json, RMObject.class); 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 unmarshalMapContentToRmObject() { List<Version> versions = unmarshalMapContentToRmObjectPreStep(ContributionTestDataCanonicalJson.ONE_ENTRY_COMPOSITION.getStream(), CompositionFormat.JSON); unmarshalMapContentToRmObjectCheck(versions, CompositionFormat.JSON, ContributionServiceImp.SupportedClasses.COMPOSITION); List<Version> versions2 = unmarshalMapContentToRmObjectPreStep(ContributionTestDataCanonicalJson.TWO_ENTRIES_COMPOSITION.getStream(), CompositionFormat.JSON); unmarshalMapContentToRmObjectCheck(versions, CompositionFormat.JSON, ContributionServiceImp.SupportedClasses.COMPOSITION); }