@Test(expectedExceptions = DescriptorValidationFailedException.class)
public void testParseNodeWhenInterceptorClassHasExtraClassInNameShouldThrowException() {

    //GIVEN
    NodeList paramNodeList = createParamNodeList();
    RequestInterceptor requestInterceptor = new MockRequestInterceptor();
    ResponseInterceptor responseInterceptor = new MockResponseInterceptor();
    given(interceptorNode.getAttribute("name")).willReturn(NAME);
    given(interceptorNode.getAttribute("class")).willReturn(BAD_CLASS);
    given(interceptorNode.getElementsByTagName("param")).willReturn(paramNodeList);
    given(requestInterceptorInitializer.getExternalClassObject(BAD_CLASS)).willReturn(requestInterceptor);
    given(responseInterceptorInitializer.getExternalClassObject(BAD_CLASS)).willReturn(responseInterceptor);
    //WHEN
    underTest.parseNode(interceptorNode, document);
    //THEN it should throw exception
}