class VertxDispatcher extends DispatcherBase implements Dispatcher<String> {

    @Override
    public Dispatcher<String> noAuth() {
        this.requireAuth = false;
        return this;
    }

}

class VertxDispatcherTest {

    protected static final int TIMEOUT;
    protected Utils.Port port;
    protected AccountRepository accountRepository;
    protected ConfigurationManager configRepository;
    protected VertxDispatcher dispatcher;
    protected Vertx vertx;
    protected static final String HOST;

    @Test
    public void testNoAuth() throws Exception {

        final int[] count = { 0 };
        dispatcher.requireAuth().get("/get/me", c -> {
            count[0] += 1;
        });

        HttpClient client = vertx.createHttpClient();
        httpGet(client, "/get/me", jo -> jo.getLong("error") == ErrorMessages.NOT_AUTHORISED);
        Assert.assertEquals(count[0], 0);
    }

}