@Test public void createInvoice()
throws IllegalArgumentException,AuthorizationManagerAdminException,DuplicatedElementException,ElementNotFoundException,NotEnoughRightsException, DmsException, InstantiationException, IllegalAccessException {
AtrilSession oSes = openTestSession();
User oUsr = new User(oSes, USRID);
CustomerAccount oAcc = new CustomerAccount(oSes.getDms(), ACCID);
Iterator<TaxPayer> oItr = oAcc.taxpayers(oSes).list(oSes).iterator();
TaxPayer oTpr = oItr.next();
oTpr.invoices(oSes).create(oSes, oUsr.getNickName(), CaptureServiceFlavor.BASIC, oTpr.id(), null, null);
closeTestSession(oSes);
}