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

    // Hit index.
    mockMvc
        .perform(get("/configuration/user").with(user(adminUserDetails)))
        //.andDo(print())
        .andExpect(status().isOk())
        // Validate user 1
        .andExpect(content().string(containsString(adminUser.getEmail())))
        .andExpect(content().string(containsString(adminUser.getDisplayName())))
        // Validate user 2
        .andExpect(content().string(containsString(nonAdminUser.getEmail())))
        .andExpect(content().string(containsString(nonAdminUser.getDisplayName())));
}