@Test public void uploadTicket()
throws DmsException, NotYetConnectedException, ClassCastException, IllegalStateException, NullPointerException, RuntimeException, IOException, InstantiationException, IllegalAccessException {
String sUsrId = User.forEmail(TEST_USER_EMAIL);
String sAccId = CustomerAccount.forBusinessName(TEST_BUSINESSNAME);
AtrilSession oSes = openTestSession();
User oUsr = new User(oSes, sUsrId);
CustomerAccount oAcc = new CustomerAccount(oSes.getDms(), sAccId);
Iterator<TaxPayer> oItr = oAcc.taxpayers(oSes).list(oSes).iterator();
TaxPayer oTpr = oItr.next();
String sEmployeeUuid = "";
BillNote oBln = oTpr.billnotes(oSes).create(oSes, oUsr.getNickName(), CaptureServiceFlavor.BASIC, oTpr.id(), "Test Concept", sEmployeeUuid);
Ticket oTck = oBln.createTicket(oSes);
oTck.createNote(oSes, getClass().getResourceAsStream("OutbackSteakhouse.jpg"), 1, "OutbackSteakhouse.jpg");
closeTestSession(oSes);
}