### Question:
Order extends BaseOpenmrsData { public boolean isDiscontinued(Date aCheckDate) { if (dateStopped != null && autoExpireDate != null && dateStopped.after(autoExpireDate)) { throw new APIException("Order.error.invalidDateStoppedAndAutoExpireDate", (Object[]) null); } if (getVoided()) { return false; } Date checkDate = aCheckDate == null ? new Date() : aCheckDate; if (!isActivated(checkDate) || dateStopped == null) { return false; } return checkDate.after(dateStopped); } Order();  Order(Integer orderId); Order copy(); Date getAutoExpireDate(); void setAutoExpireDate(Date autoExpireDate); Concept getConcept(); void setConcept(Concept concept); Date getScheduledDate(); void setScheduledDate(Date scheduledDate); Date getDateStopped(); Concept getOrderReason(); void setOrderReason(Concept orderReason); Encounter getEncounter(); void setEncounter(Encounter encounter); String getInstructions(); void setInstructions(String instructions); String getAccessionNumber(); void setAccessionNumber(String accessionNumber); Provider getOrderer(); void setOrderer(Provider orderer); Integer getOrderId(); void setOrderId(Integer orderId); Date getDateActivated(); void setDateActivated(Date dateActivated); String getOrderReasonNonCoded(); void setOrderReasonNonCoded(String orderReasonNonCoded); String getCommentToFulfiller(); void setCommentToFulfiller(String commentToFulfiller); boolean isActivated(); boolean isActivated(Date checkDate); boolean isActive(); boolean isActive(Date aCheckDate); boolean isStarted(); boolean isStarted(Date aCheckDate); boolean isDiscontinued(Date aCheckDate); boolean isExpired(); boolean isExpired(Date aCheckDate); boolean isDiscontinuedRightNow(); Patient getPatient(); void setPatient(Patient patient); @Override Integer getId(); @Override String toString(); @Override void setId(Integer id); Urgency getUrgency(); void setUrgency(Urgency urgency); String getOrderNumber(); Order getPreviousOrder(); void setPreviousOrder(Order previousOrder); Action getAction(); void setAction(Action action); CareSetting getCareSetting(); void setCareSetting(CareSetting careSetting); OrderType getOrderType(); void setOrderType(OrderType orderType); Order cloneForDiscontinuing(); Order cloneForRevision(); boolean isType(OrderType orderType); boolean hasSameOrderableAs(Order otherOrder); Date getEffectiveStartDate(); Date getEffectiveStopDate(); OrderGroup getOrderGroup(); void setOrderGroup(OrderGroup orderGroup); Double getSortWeight(); void setSortWeight(Double sortWeight); static final long serialVersionUID; }### Answer:
@Test public void isDiscontinued_shouldNotDiscontinueGivenOrderWithoutDates() throws Exception { assertFalse("order without dates shouldn't be discontinued", o.isDiscontinued(ymd.parse("2007-10-26"))); }