    @Test
    public void testNoQuerySet() {

        MessageEventsQueryBuilder queryBuilder = new MessageEventsQueryBuilder();

        Endpoint ep = new Endpoint("test");
        queryBuilder.buildQuery(ep);

        String query = ep.toString();
        Assert.assertNotNull(query);
        Assert.assertEquals("/test", query);

    }