@Test
public void testAllEnabled2() {
final ResourceConfig resourceConfig = new ResourceConfig();
resourceConfig.property(ServerProperties.MONITORING_STATISTICS_MBEANS_ENABLED, true);
resourceConfig.property(ServerProperties.MONITORING_STATISTICS_ENABLED, true);
final MonitoringFeature monitoringFeature = new MonitoringFeature();
monitoringFeature.setmBeansEnabled(false);
resourceConfig.register(monitoringFeature);
final ApplicationHandler applicationHandler = new ApplicationHandler(resourceConfig);
final ResourceConfig config = applicationHandler.getConfiguration();
Assert.assertTrue(config.isRegistered(ApplicationInfoListener.class));