    @Test
    public void testCreate() {

        Form form = new Form();
        form.param("title", params[0]);
        form.param("description", params[1]);
        form.param("urls", new StringJoiner(",").add(params[2]).add(params[3]).toString());
        form.param("refreshPeriod", params[4]);

        Response response = target().request().post(Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE));
        assertEquals(Status.OK.getStatusCode(), response.getStatus());
        String html = response.readEntity(String.class);

        // HTML page contains all information about the created entity
        assertTrue(html.contains(params[0]) && html.contains(params[1])
                && html.contains(params[2]) && html.contains(params[3])
                && html.contains(params[4]));
    }