{
Application app = new Application1();
//binder.addApplication(app);
applicationRegistry.addApplication(app);
assertEquals(4, binder.getSize());
ApplicationProviders appProviders = providersRegistry.getProviders(app.getClass().getName());
assertEquals(1, appProviders.getRequestFilters(null).size());
assertEquals(1, appProviders.getResponseFilters(null).size());
assertEquals(1, appProviders.getMethodInvokerFilters(null).size());
assertNotNull(appProviders.getExceptionMapper(RuntimeException.class));
assertNotNull(appProviders.getExceptionMapper(IllegalStateException.class));
}