### Question:
SerializationUtil { public static List<Map<String, Object>> resultsToList(SearchResultResponse resultResponse, AccessGroupSet groups) { List<Map<String, Object>> result = new ArrayList<>(resultResponse.getResultList().size()); for (BriefObjectMetadata metadata : resultResponse.getResultList()) { result.add(metadataToMap(metadata, groups)); } return result; } private  SerializationUtil(); static String structureToJSON(HierarchicalBrowseResultResponse response, AccessGroupSet groups); static String resultsToJSON(SearchResultResponse resultResponse, AccessGroupSet groups); static List<Map<String, Object>> resultsToList(SearchResultResponse resultResponse, AccessGroupSet groups); static Map<String, Object> metadataToMap(BriefObjectMetadata metadata, AccessGroupSet groups); static String metadataToJSON(BriefObjectMetadata metadata, AccessGroupSet groups); static String objectToJSON(Object object); static void injectSettings(SearchSettings searchSettings,
            SolrSettings solrSettings, GlobalPermissionEvaluator globalPermissionEvaluator);  }### Answer:
@Test public void briefMetadataListToJSONTest() throws Exception { md.setTitle("Test Item"); BriefObjectMetadataBean md2 = new BriefObjectMetadataBean(); md2.setId("uuid:test2"); md2.setTitle("Test Item 2"); md.setDatastream(DATASTREAMS); SearchResultResponse response = new SearchResultResponse(); response.setResultList(asList(md, md2)); List<Map<String, Object>> resultList = SerializationUtil.resultsToList(response, null); assertEquals(2, resultList.size()); assertEquals("uuid:test", resultList.get(0).get("id")); assertEquals("uuid:test2", resultList.get(1).get("id")); }