@Test
public void testLoadExternalClassShouldCallClassPathExtenderAddFileFunction() throws ClassNotFoundException {

    //GIVEN
    given(beanRegistryService.getBean(SIMPLE_CLASS_NAME, TemplateGenerator.class)).willThrow(new NoSuchBeanDefinitionException(""));
    given(classFactory.getClassToLoad(CLASS)).willReturn(Object.class);
    ignoreInterfaceTypeValidation();
    //WHEN
    underTest.loadExternalClass(SIMPLE_CLASS_NAME, PATH, TemplateGenerator.class);
    //THEN
    verify(classPathExtender).addFile(PATH);
    verify(classNameMapper).get(SIMPLE_CLASS_NAME);
}