@Test
public void testResolve_Comment() throws Exception {

  String comment = "test comment";
  // comment specified in child only
  ServiceInfo info = new ServiceInfo();
  ServiceInfo parentInfo = new ServiceInfo();
  info.setComment(comment);
  ServiceModule service = resolveService(info, parentInfo);
  assertEquals(comment, service.getModuleInfo().getComment());
  // comment specified in parent only
  info.setComment(null);
  parentInfo.setComment(comment);
  service = resolveService(info, parentInfo);
  assertEquals(comment, service.getModuleInfo().getComment());
  // set in both
  info.setComment(comment);
  parentInfo.setComment("other comment");
  service = resolveService(info, parentInfo);
  assertEquals(comment, service.getModuleInfo().getComment());
}