@Test
public void declareLhs() {

    String name = "NAME";
    String statusToSet = "STATUS_TO_SET";
    KiePMMLDroolsRule rule = KiePMMLDroolsRule.builder(name, statusToSet, Collections.emptyList()).build();
    KiePMMLDescrLhsFactory.factory(lhsBuilder).declareLhs(rule);
    assertNotNull(lhsBuilder.getDescr());
    assertNotNull(lhsBuilder.getDescr().getDescrs());
    assertEquals(1, lhsBuilder.getDescr().getDescrs().size());
    assertTrue(lhsBuilder.getDescr().getDescrs().get(0) instanceof PatternDescr);
    PatternDescr patternDescr = (PatternDescr) lhsBuilder.getDescr().getDescrs().get(0);
    assertEquals(KiePMMLStatusHolder.class.getSimpleName(), patternDescr.getObjectType());
    assertEquals(STATUS_HOLDER, patternDescr.getIdentifier());
    assertTrue(patternDescr.getConstraint() instanceof AndDescr);
    AndDescr andDescr = (AndDescr) patternDescr.getConstraint();
    assertTrue(andDescr.getDescrs().isEmpty());
}