@Test
public void testLoadExternalClassShouldReturnTheClassWhenAlreadyInApplicationContexg() throws ClassNotFoundException {

    //GIVEN
    TemplateGenerator generator = new DummyGenerator();
    given(beanRegistryService.getBean(SIMPLE_CLASS_NAME, TemplateGenerator.class)).willReturn(generator);
    //WHEN
    TemplateGenerator actual = underTest.loadExternalClass(CLASS, PATH, TemplateGenerator.class);
    //THEN
    assertEquals(actual, generator);
}