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