diff --git a/library/src/test/java/org/mustangproject/ZUGFeRD/ZF2ZInvoiceImporterTest.java b/library/src/test/java/org/mustangproject/ZUGFeRD/ZF2ZInvoiceImporterTest.java
index 7d7473bb..f75d0775 100644
--- a/library/src/test/java/org/mustangproject/ZUGFeRD/ZF2ZInvoiceImporterTest.java
+++ b/library/src/test/java/org/mustangproject/ZUGFeRD/ZF2ZInvoiceImporterTest.java
@@ -372,4 +372,58 @@ public class ZF2ZInvoiceImporterTest extends ResourceCase {
}
+ /*
+this would test if for all elements/attributes
+ */
+
+ public void testEEISI_300_cii_Import() throws XPathExpressionException, ParseException {
+ boolean hasExceptions = false;
+ File inputCII = getResourceAsFile("not_validating_full_invoice_based_onTest_EeISI_300_CENfullmodel.cii.xml");
+ File inputUBL = getResourceAsFile("not_validating_full_invoice_based_onTest_EeISI_300_CENfullmodel.ubl.xml");
+
+
+ ZUGFeRDInvoiceImporter zii = new ZUGFeRDInvoiceImporter();
+ try {
+ zii.fromXML(new String(Files.readAllBytes(inputCII.toPath()), StandardCharsets.UTF_8));
+
+ } catch (IOException e) {
+ hasExceptions = true;
+ }
+
+ Invoice invoiceUBL = null;
+ invoiceUBL = zii.extractInvoice();
+
+ try {
+ zii.fromXML(new String(Files.readAllBytes(inputUBL.toPath()), StandardCharsets.UTF_8));
+
+ } catch (IOException e) {
+ hasExceptions = true;
+ }
+
+ Invoice invoiceCII = null;
+ try {
+ invoiceCII = zii.extractInvoice();
+ ObjectMapper mapper = new ObjectMapper();
+ String ubl=mapper.writeValueAsString(invoiceUBL).replace("," ,"\n");
+ String cii=mapper.writeValueAsString(invoiceCII).replace("," ,"\n");
+
+ assertEquals(cii,ubl);
+
+
+ /*
+ Seller contact point
+ +41 345 654455
+ seller@contact.de);*/
+ } catch (XPathExpressionException | ParseException e) {
+ hasExceptions = true;
+ } catch (JsonProcessingException e) {
+ throw new RuntimeException(e);
+ }
+ assertFalse(hasExceptions);
+
+// TransactionCalculator tc = new TransactionCalculator(invoiceCII);
+// assertEquals(new BigDecimal("205.00"), tc.getGrandTotal());
+
+ }
+
}