public Statement apply(final Statement base, Description description) {
return new Statement() {
@Override
public void evaluate() throws Throwable {
try {
test = new JerseyTest() {
@Override
protected Application configure() {
DropwizardResourceConfig config = DropwizardResourceConfig.forTesting(new MetricRegistry());
for (Class<?> provider : providers) {
config.register(provider);