String invoiceId = testObjects.get("invoiceId").toString();
MessageProcessor flow = lookupFlowConstruct("get-order-invoice");
MuleEvent response = flow.process(getTestEvent(testObjects));
SalesOrderInvoiceEntity invoice = (SalesOrderInvoiceEntity) response.getMessage().getPayload();
assertTrue(invoice.getIncrement_id().equals(invoiceId));
}
catch (Exception e) {
e.printStackTrace();
fail();
}