### Question:
ActiveResourceManagerFactory implements ResourceManagerFactory<T> { @Override public ResourceManager<T> createResourceManager( Configuration configuration, ResourceID resourceId, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, MetricRegistry metricRegistry, FatalErrorHandler fatalErrorHandler, ClusterInformation clusterInformation, @Nullable String webInterfaceUrl, JobManagerMetricGroup jobManagerMetricGroup) throws Exception { return createActiveResourceManager( createActiveResourceManagerConfiguration(configuration), resourceId, rpcService, highAvailabilityServices, heartbeatServices, metricRegistry, fatalErrorHandler, clusterInformation, webInterfaceUrl, jobManagerMetricGroup); }  @Override ResourceManager<T> createResourceManager(
			Configuration configuration,
			ResourceID resourceId,
			RpcService rpcService,
			HighAvailabilityServices highAvailabilityServices,
			HeartbeatServices heartbeatServices,
			MetricRegistry metricRegistry,
			FatalErrorHandler fatalErrorHandler,
			ClusterInformation clusterInformation,
			@Nullable String webInterfaceUrl,
			JobManagerMetricGroup jobManagerMetricGroup); static Configuration createActiveResourceManagerConfiguration(Configuration originalConfiguration);  }### Answer:
@Test public void createResourceManager_WithDefaultConfiguration_ShouldSetManagedMemory() throws Exception { final Configuration configuration = new Configuration(); final TestingActiveResourceManagerFactory resourceManagerFactory = new TestingActiveResourceManagerFactory(); final TestingRpcService rpcService = new TestingRpcService(); try { final ResourceManager<ResourceID> ignored = resourceManagerFactory.createResourceManager( configuration, ResourceID.generate(), rpcService, new TestingHighAvailabilityServices(), new TestingHeartbeatServices(), NoOpMetricRegistry.INSTANCE, new TestingFatalErrorHandler(), new ClusterInformation("foobar", 1234), null, UnregisteredMetricGroups.createUnregisteredJobManagerMetricGroup()); } finally { RpcUtils.terminateRpcService(rpcService, Time.seconds(10L)); } }