@Override
    public void run(MyConfiguration configuration, Environment environment) {
        environment.jersey().register(MyResource.class);
    }
@Test
    void buildsMyResource() throws Exception {
        application.run(config, environment);

        verify(jersey).register(eq(MyResource.class));
    }