@Test
public void getExpressionElementsWithoutClass() {

    FactMapping original = new FactMapping("FACT_ALIAS", new FactIdentifier("FI_TEST", "com.test.Foo"), new ExpressionIdentifier("EI_TEST", FactMappingType.GIVEN));
    assertThatThrownBy(original::getExpressionElementsWithoutClass)
            .isInstanceOf(IllegalStateException.class)
            .hasMessage("ExpressionElements malformed");
    assertEquals(0, original.getExpressionElements().size());
    original.addExpressionElement("STEP", String.class.getCanonicalName());
    assertEquals(0, original.getExpressionElementsWithoutClass().size());
    assertEquals(1, original.getExpressionElements().size());
}