@Test
public void testWhenExternalClassInitializerCannotLoadClassThenExternalJarClassInitializerShouldTryToLoadClass() {

    //GIVEN
    given(externalClassInitializer.loadExternalClass(EXTERNAL_CLASS_NAME, CLASS_PATH, INTERFACE_TO_CAST)).willThrow(
            new DescriptorValidationFailedException(""));
    given(stubResourcePathProvider.getJarPathAsString()).willReturn("path/jar");
    //WHEN
    underTest.loadExternalClass(EXTERNAL_CLASS_NAME, CLASS_PATH, INTERFACE_TO_CAST);
    //THEN
    verify(externalJarClassInitializer).loadExternalClass(EXTERNAL_CLASS_NAME, "path/jar", INTERFACE_TO_CAST);
}