@Test
public void testFindAll() throws Exception {

    final URIBuilder uriBuilder = createGetUrl(ROOT_URI)
            .addParameters(createPagePair(1, 100));
    // performs GET: /api/config-params?p=1&s=100
    mockMvc.perform(get(toUrl(uriBuilder))
            .accept(MediaType.APPLICATION_JSON)
            .with(SecurityMockMvcRequestPostProcessors.authentication(mockAuthentication("ADMIN"))))
                .andExpect(status().isOk())
                .andExpect(jsonPath("paging.first", is(true)))
                .andExpect(jsonPath("paging.last", is(true)))
                .andExpect(jsonPath("paging.totalPages", is(1)))
                .andExpect(jsonPath("paging.number", is(1)))
                .andExpect(jsonPath("data[0].code", is(param.getCode())))
                .andExpect(jsonPath("data[0].currentValue", is(1)))
                .andExpect(jsonPath("data[0].dataType", is(param.getDataType().toString())));
}