String filter = (String) testObjects.get("pendingOrdersFilter");
testObjects.put("filter", filter);
MessageProcessor flow = lookupFlowConstruct("list-orders");
MuleEvent response = flow.process(getTestEvent(testObjects));
List<SalesOrderListEntity> orders = (List<SalesOrderListEntity>) response.getMessage().getPayload();
assertTrue(orders.size() == orderIds.size());
for (SalesOrderListEntity order : orders) {
assertTrue(orderIds.contains(order.getIncrement_id()));