@Test
public void testHtmlProcessorOnPreVisitPolicyNullParent() {

    PolicyType mockPolicyType = Mockito.mock(PolicyType.class);
    PolicySetType mockPolicyParent = null;
    List<Object> testList = new ArrayList<Object>();
    testList.add(new Object());
    processor = new HtmlProcessor(temp, mockPolicyType);
    when(mockPolicyType.getCombinerParametersOrRuleCombinerParametersOrVariableDefinition()).thenReturn(testList);
    when(mockPolicyType.getDescription()).thenReturn("");
    CallbackResult preResult = processor.onPreVisitPolicy(mockPolicyParent, mockPolicyType);
    assertEquals("CONTINUE", preResult.name());
    verify(mockPolicyType, atLeast(1)).getCombinerParametersOrRuleCombinerParametersOrVariableDefinition();
    verify(mockPolicyType, atLeast(1)).getDescription();
}