private static Application createApplication(boolean forceEnable, boolean enableMonitoring,
boolean enableMonitoringStatistics, boolean enableMonitoringStatisticsMBeans,
Boolean monitoringEnabled, Boolean monitoringStatisticsEnabled,
Boolean monitoringStatisticsMBeansEnabled) {
final ResourceConfig resourceConfig = new ResourceConfig(Resource.class);
resourceConfig.property(ServerProperties.APPLICATION_NAME, "testApp");
resourceConfig.property(FORCE_ENABLE, forceEnable);
if (enableMonitoring) {
resourceConfig.property(ENABLE_MONITORING, true);
}
if (enableMonitoringStatistics) {