@Test
public void testHtmlProcessorPolicyListNotEmpty() {

    PolicySetType mockPolicySetType = Mockito.mock(PolicySetType.class);
    PolicyType mockPolicyType = Mockito.mock(PolicyType.class);
    TargetType mockTargetType = Mockito.mock(TargetType.class);
    List<AnyOfType> anyOfList = new ArrayList<AnyOfType>();
    anyOfList.add(new AnyOfType());
    processor = new HtmlProcessor(temp, mockPolicySetType);
    when(mockPolicyType.getRuleCombiningAlgId()).thenReturn(null);
    when(mockPolicyType.getPolicyId()).thenReturn(null);
    when(mockPolicyType.getVersion()).thenReturn(null);
    when(mockPolicyType.getTarget()).thenReturn(mockTargetType);
    when(mockTargetType.getAnyOf()).thenReturn(anyOfList);
    processor.policy(mockPolicyType);
    verify(mockPolicyType, atLeast(1)).getRuleCombiningAlgId();
    verify(mockPolicyType, atLeast(1)).getPolicyId();
    verify(mockPolicyType, atLeast(1)).getVersion();
    verify(mockPolicyType, atLeast(1)).getTarget();
    verify(mockTargetType, atLeast(1)).getAnyOf();
}