@Test
public void testResolve_DisplayName() throws Exception {

  String displayName = "test_display_name";
  // specified in child only
  ServiceInfo info = new ServiceInfo();
  ServiceInfo parentInfo = new ServiceInfo();
  info.setDisplayName(displayName);
  ServiceModule service = resolveService(info, parentInfo);
  assertEquals(displayName, service.getModuleInfo().getDisplayName());
  // specified in parent only
  info.setDisplayName(null);
  parentInfo.setDisplayName(displayName);
  service = resolveService(info, parentInfo);
  assertEquals(displayName, service.getModuleInfo().getDisplayName());
  // specified in both
  info.setDisplayName(displayName);
  parentInfo.setDisplayName("other display name");
  service = resolveService(info, parentInfo);
  assertEquals(displayName, service.getModuleInfo().getDisplayName());
}