@Test(expected = JpaUnitException.class)
public void testBeanCreationWithErrorDuringConstructionWithoutUsingCDI() {

    // GIVEN
    // WHEN
    BeanFactory.createBean(ClassC.class);
    // THEN
    // exception is thrown
}