SearchStreams { public boolean p3_hasActiveOrders(Customer customer) { 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 p3_hasActiveOrders_true() { Customer customer = new Customer(new Order(Status.INACTIVE), new Order(Status.ACTIVE)); assertTrue(service.p3_hasActiveOrders(customer)); }
@Test public void p3_hasActiveOrders_false() { Customer customer = new Customer(new Order(Status.INACTIVE)); assertFalse(service.p3_hasActiveOrders(customer)); }