@Test
public void testResolve_Category() {

  String category = "foo";
  ComponentInfo info = new ComponentInfo();
  ComponentInfo parentInfo = new ComponentInfo();
  // parent has value set, child value is null
  parentInfo.setCategory(category);
  assertEquals(category, resolveComponent(info, parentInfo).getModuleInfo().getCategory());
  // child has value set, parent value is null
  info.setCategory(category);
  parentInfo.setCategory(null);
  assertEquals(category, resolveComponent(info, parentInfo).getModuleInfo().getCategory());
  // value set in both parent and child; child overwrites
  String category2 = "foo2";
  info.setCategory(category2);
  parentInfo.setCategory(category);
  assertEquals(category2, resolveComponent(info, parentInfo).getModuleInfo().getCategory());
}