@Test
@Transactional
public void testGetEdit_existingMessageFormat() throws Exception {

    final MessageFormat format = messageFormatTestTools.createMessageFormat("MyMessageFormat" + System.currentTimeMillis());
    format.setOptionParameters("{\"myOption1\":\"myValue1\",\"myOption2\":\"myValue2\"}");
    messageFormatRepository.save(format);
    // Hit edit page.
    mockMvc
        .perform(get("/configuration/messageFormat/edit/" + format.getId())
            .with(user(adminUserDetails)))
        //.andDo(print())
        .andExpect(status().isOk())
        .andExpect(content().string(containsString(format.getName())))
        .andExpect(content().string(containsString(format.getClasspath())))
        // Should have our Id input
        .andExpect(content().string(containsString("value=\"" + format.getId() + "\"")))
        // Should have our defined options
        .andExpect(content().string(containsString("myValue1")))
        .andExpect(content().string(containsString("myValue2")))
        .andExpect(content().string(containsString("myOption1")))
        .andExpect(content().string(containsString("myOption2")));
}