### Question:
EntityProperty extends BaseProperty<E> implements RelationshipProperty<E> { public Expression ninId(Collection<Object> ids) { return ExpressionFactory.notInExp(getExpression(), ids); } protected  EntityProperty(String name, Expression expression, Class<E> type); Expression eqId(Object id); Expression inId(Collection<Object> ids); Expression inId(Object firstId, Object... moreIds); Expression neqId(Object id); Expression ninId(Collection<Object> ids); Expression ninId(Object firstId, Object... moreIds); @Override EntityProperty<E> alias(String alias); @Override EntityProperty<E> outer(); EntityProperty<E> enclosing();  }### Answer:
@Test public void ninIdCollection() { Expression exp = property.ninId(Arrays.asList(1, 2, 3)); assertEquals(ExpressionFactory.exp("path not in (1, 2, 3)"), exp); }
@Test public void ninIdVararg() { Expression exp = property.ninId(1, 2, 3); assertEquals(ExpressionFactory.exp("path not in (1, 2, 3)"), exp); }