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

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