{
binder.bind(TestResource.class).to(JaxrsTestResource.class);
}
};
final ModuleProcessor processor = new ModuleProcessor(dispatcher.getRegistry(), dispatcher.getProviderFactory());
processor.process(module, new JaxrsModule());
final TestResource resource = ProxyFactory.create(TestResource.class, generateBaseUrl());
Assert.assertEquals("ok", resource.getName());
dispatcher.getRegistry().removeRegistrations(TestResource.class);
}