@Test
public void testResolve_MonitoringService() throws Exception {

  Boolean isMonitoringService = true;
  // specified in child only
  ServiceInfo info = new ServiceInfo();
  ServiceInfo parentInfo = new ServiceInfo();
  info.setMonitoringService(isMonitoringService);
  ServiceModule service = resolveService(info, parentInfo);
  assertEquals(isMonitoringService, service.getModuleInfo().isMonitoringService());
  // specified in parent only
  info.setMonitoringService(null);
  parentInfo.setMonitoringService(isMonitoringService);
  service = resolveService(info, parentInfo);
  assertEquals(isMonitoringService, service.getModuleInfo().isMonitoringService());
  // specified in both
  info.setMonitoringService(isMonitoringService);
  parentInfo.setMonitoringService(false);
  service = resolveService(info, parentInfo);
  assertEquals(isMonitoringService, service.getModuleInfo().isMonitoringService());
}