    @Test
    public void testGetAllPosts() throws Exception {

        String path = "/posts";
        WebTarget targetGetAll = client.target(URI.create("http://localhost:" + webServer.port() + path));

        try (Response resGetAll = targetGetAll.request().accept(MediaType.APPLICATION_JSON_TYPE).get()) {
            assertEquals(200, resGetAll.getStatus());
            List<Post> results = resGetAll.readEntity(new GenericType<List<Post>>() {
            });
            assertTrue(results != null);
            LOGGER.info("results.size()::" + results.size());
            assertTrue(results.size() == 2);
        }
    }