@Test
public void getRecord() throws Exception {

    MockMvc mockMvc = MockMvcBuilders.webAppContextSetup(this.wac).build();
    MockHttpSession mockHttpSession = loginAsAdmin();
    Map<String, String> contentTypes = new LinkedHashMap<>();
    contentTypes.put(MediaType.TEXT_HTML_VALUE, this.uuid + "/formatters/xsl-view");
    contentTypes.put(MediaType.APPLICATION_XHTML_XML_VALUE, this.uuid + "/formatters/xsl-view");
    contentTypes.put("application/pdf", this.uuid + "/formatters/xsl-view");
    contentTypes.put(MediaType.APPLICATION_XML_VALUE, this.uuid + "/formatters/xml");
    contentTypes.put(MediaType.APPLICATION_JSON_VALUE, this.uuid + "/formatters/xml");
    contentTypes.put("application/zip", this.uuid + "/formatters/zip");
    contentTypes.put(MEF_V1_ACCEPT_TYPE, this.uuid + "/formatters/zip");
    contentTypes.put(MEF_V2_ACCEPT_TYPE, this.uuid + "/formatters/zip");
    for(Map.Entry<String, String> entry : contentTypes.entrySet()) {
        mockMvc.perform(get("/srv/api/records/" + this.uuid)
            .session(mockHttpSession)
            .accept(entry.getKey()))
            .andDo(print())
            .andExpect(status().isOk())
            .andExpect(forwardedUrl(entry.getValue()));
    }
}