SearchStreams { public boolean p4_canBeReturned(Order order) { return true; }  List<Order> p1_getActiveOrders(Customer customer); Order p2_getOrderById(List<Order> orders, long orderId); boolean p3_hasActiveOrders(Customer customer); boolean p4_canBeReturned(Order order); Order p5_getMaxPriceOrder(Customer customer); List<Order> p6_getLast3Orders(Customer customer);  }
@Test public void p4_canBeReturned_frue() { Order order = new Order(new OrderLine()); assertTrue(service.p4_canBeReturned(order)); }
@Test public void p4_canBeReturned_false() { OrderLine specialOffer = new OrderLine().setSpecialOffer(true); Order order = new Order(specialOffer, new OrderLine()); assertFalse(service.p4_canBeReturned(order)); }