@Test
public void testParseNodeShouldReturnInterceptorDescriptor() {

    //GIVEN
    NodeList paramNodeList = createParamNodeList();
    RequestInterceptor requestInterceptor = new MockRequestInterceptor();
    ResponseInterceptor responseInterceptor = new MockResponseInterceptor();
    given(interceptorNode.getAttribute("name")).willReturn(NAME);
    given(interceptorNode.getAttribute("class")).willReturn(CLASS);
    given(interceptorNode.getElementsByTagName("param")).willReturn(paramNodeList);
    given(requestInterceptorInitializer.getExternalClassObject(CLASS)).willReturn(requestInterceptor);
    given(responseInterceptorInitializer.getExternalClassObject(CLASS)).willReturn(responseInterceptor);
    //WHEN
    InterceptorDescriptor actual = underTest.parseNode(interceptorNode, document);
    //THEN
    assertEquals(actual.getName(), NAME);
    assertEquals(actual.getRequestInterceptor(), requestInterceptor);
    assertEquals(actual.getResponseInterceptor(), responseInterceptor);
    assertEquals(actual.getParams().getAllParameters().get(0).getName(), NAME);
    assertEquals(actual.getParams().getAllParameters().get(0).getValue(), VALUE);
}