@Test
public void testResolve_UnlimitedKeyJCERequiredOverwrite(){

  List<ComponentInfo> components = createComponentInfo(2);
  ComponentInfo info = components.get(0);
  ComponentInfo parentInfo = components.get(1);
  //parent has it, child overwrites it
  parentInfo.setUnlimitedKeyJCERequired(UnlimitedKeyJCERequirement.KERBEROS_ENABLED);
  info.setUnlimitedKeyJCERequired(UnlimitedKeyJCERequirement.ALWAYS);
  assertSame(UnlimitedKeyJCERequirement.ALWAYS, resolveComponent(info, parentInfo).getModuleInfo().getUnlimitedKeyJCERequired());
}