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

    // Create some dummy filters
    final Filter filter1 = filterTestTools.createFilter("Filter1");
    final Filter filter2 = filterTestTools.createFilter("Filter2");
    // Hit index.
    mockMvc
        .perform(get("/configuration/filter").with(user(adminUserDetails)))
        //.andDo(print())
        .andExpect(status().isOk())
        // Validate cluster 1
        .andExpect(content().string(containsString(filter1.getName())))
        .andExpect(content().string(containsString(filter1.getClasspath())))
        // Validate cluster 2
        .andExpect(content().string(containsString(filter2.getName())))
        .andExpect(content().string(containsString(filter2.getClasspath())));
}