KiePMMLDescrLhsFactory { protected String getInNotInConstraint(final List<Object> values) { String expressionString = values.stream() .map(Object::toString) .collect(Collectors.joining(", ", "(", ")")); return String.format(VALUE_PATTERN, "in", expressionString); } private  KiePMMLDescrLhsFactory(final CEDescrBuilder<RuleDescrBuilder, AndDescr> builder); static KiePMMLDescrLhsFactory factory(final CEDescrBuilder<RuleDescrBuilder, AndDescr> builder); void declareLhs(final KiePMMLDroolsRule rule);  }
@Test public void getInNotInConstraint() { List<Object> values = Arrays.asList("-5", "0.5", "1", "10"); String retrieved = KiePMMLDescrLhsFactory.factory(lhsBuilder).getInNotInConstraint(values); String expected = "value in (-5, 0.5, 1, 10)"; assertEquals(expected, retrieved); }