@Test
public void testResolve_RestartRequiredAfterChange() throws Exception {

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