public void testAddParentRules() {
final ActivatedVariablePolicyMock policyMock =
new ActivatedVariablePolicyMock("policyMock", expectations);
final VariantMock deviceVariantMock =
new VariantMock("deviceVariantMock", expectations);
deviceVariantMock.expects.getVariantType().returns(
VariantType.THEME).any();
final StyleSheetMock deviceStyleSheetMock =
new StyleSheetMock("deviceStyleSheetMock", expectations);
deviceStyleSheetMock.expects.getRules().returns(
Collections.singletonList("device rule")).any();
final ActivatedThemeContent deviceContent =
new ActivatedThemeContent(deviceStyleSheetMock, true);
deviceVariantMock.expects.getContent().returns(deviceContent).any();
final VariantMock fallbackDeviceVariantMock =
new VariantMock("fallbackDeviceVariantMock", expectations);
fallbackDeviceVariantMock.expects.getVariantType().returns(
VariantType.THEME).any();
final StyleSheetMock fallbackDeviceStyleSheetMock =
new StyleSheetMock("fallbackDeviceStyleSheetMock", expectations);
fallbackDeviceStyleSheetMock.expects.getRules().returns(