TradeRoundTrip implements IRoundTrip { @Override public boolean isComplete() { return entry != null && exit != null; }  @Override void addTradeReference(TradeOrder order, TradeReferenceLine tradeReference); @Override String getResults(); @Override boolean isComplete(); @Override String getCorrelationId(); TradeOrder getEntryOrder(); TradeOrder getExitOrder(); static final long serialVersionUID; }
@Test public void testIsComplete() { assertFalse(testRoundTrip.isComplete()); testRoundTrip.entry = mockEntryOrder; assertFalse(testRoundTrip.isComplete()); testRoundTrip.entry = null; testRoundTrip.exit = mockExitOrder; assertFalse(testRoundTrip.isComplete()); testRoundTrip.entry = mockEntryOrder; assertTrue(testRoundTrip.isComplete()); }