@Test
public void testResolve_BulkCommandsDefinition(){

  BulkCommandDefinition bulkCommandsDefinition = new BulkCommandDefinition();
  ComponentInfo info = new ComponentInfo();
  ComponentInfo parentInfo = new ComponentInfo();
  // parent has value set, child value is null
  parentInfo.setBulkCommands(bulkCommandsDefinition);
  assertSame(bulkCommandsDefinition, resolveComponent(info, parentInfo).getModuleInfo().getBulkCommandDefinition());
  // child has value set, parent value is null
  info.setBulkCommands(bulkCommandsDefinition);
  parentInfo.setBulkCommands(null);
  assertSame(bulkCommandsDefinition, resolveComponent(info, parentInfo).getModuleInfo().getBulkCommandDefinition());
  // value set in both parent and child; child overwrites
  BulkCommandDefinition bulkCommandsDefinition2 = createNiceMock(BulkCommandDefinition.class);
  info.setBulkCommands(bulkCommandsDefinition);
  parentInfo.setBulkCommands(bulkCommandsDefinition2);
  assertSame(bulkCommandsDefinition, resolveComponent(info, parentInfo).getModuleInfo().getBulkCommandDefinition());
}