@Test
public void testResolve_DisplayName() {

  String displayName = "foo";
  ComponentInfo info = new ComponentInfo();
  ComponentInfo parentInfo = new ComponentInfo();
  // parent has value set, child value is null
  parentInfo.setDisplayName(displayName);
  assertEquals(displayName, resolveComponent(info, parentInfo).getModuleInfo().getDisplayName());
  // child has value set, parent value is null
  info.setDisplayName(displayName);
  parentInfo.setDisplayName(null);
  assertEquals(displayName, resolveComponent(info, parentInfo).getModuleInfo().getDisplayName());
  // value set in both parent and child; child overwrites
  String displayName2 = "foo2";
  info.setDisplayName(displayName2);
  parentInfo.setDisplayName(displayName);
  assertEquals(displayName2, resolveComponent(info, parentInfo).getModuleInfo().getDisplayName());
}