    @Test
    public void testGetSnippet() throws IOException {

        ResponseEntity<String> response = restTemplate.getForEntity(SNIPPET_ENDPOINT, String.class);

        Assert.assertEquals(HttpStatus.OK, response.getStatusCode());
        Page<SnippetEntity> page = TestUtils.getObjectFromString(response.getBody(), new TypeReference<Page<SnippetEntity>>() {
        });

        List<SnippetEntity> snippetsExpected = Arrays.asList(TestUtils.getObjectFromJson("snippet/content.json", SnippetEntity[].class));

        Assert.assertEquals(2, page.getTotalElement());
        Assert.assertEquals(1, page.getTotalPage());
        // shall find how to test deep array with no order
        //MatcherAssert.assertThat(page.getHits(), Matchers.sameBeanAs(snippetsExpected).ignoring("_id"));
    }