@Test
public void cloneFactMapping() {

    FactMapping original = new FactMapping("FACT_ALIAS", new FactIdentifier("FI_TEST", "com.test.Foo"), new ExpressionIdentifier("EI_TEST", FactMappingType.GIVEN));
    original.addExpressionElement("FIRST_STEP", String.class.getName());
    original.setExpressionAlias("EA_TEST");
    original.setGenericTypes(new ArrayList<>());
    FactMapping retrieved = original.cloneFactMapping();
    assertTrue(retrieved.equals(original));
}