### Question:
Trade implements Serializable { public boolean isOpened() { return (entry != null) && (exit == null); } Trade();  Trade(OrderType startingType);  Trade(OrderType startingType, CostModel transactionCostModel, CostModel holdingCostModel);  Trade(Order entry, Order exit);  Trade(Order entry, Order exit, CostModel transactionCostModel, CostModel holdingCostModel); Order getEntry(); Order getExit(); @Override boolean equals(Object obj); @Override int hashCode(); Order operate(int index); Order operate(int index, Num price, Num amount); boolean isClosed(); boolean isOpened(); boolean isNew(); @Override String toString(); Num getProfit(); Num getProfit(int finalIndex, Num finalPrice); Num getTradeCost(int finalIndex); Num getTradeCost(); Num getHoldingCost(); Num getHoldingCost(int finalIndex);  }### Answer:
@Test public void whenNewShouldNotExit() { assertFalse(newTrade.isOpened()); }