*/
@Test
@DatabaseSetup(value = DATASET_SERVICE_ADMIN_EMPTY)
@DatabaseTearDown(value = DATASET_SERVICE_ADMIN_DOCUMENT_X1, type = DatabaseOperation.DELETE)
public void testSaveDocument() throws Exception {
DSP5DTO dsp5 = new DSP5DTO();
BusinessPartnerDTO bp1 = new BusinessPartnerDTO();
BusinessPartnerDTO bp2 = new BusinessPartnerDTO();
BusinessPartnerDTO bp3 = new BusinessPartnerDTO();
BusinessPartnerDTO bp4 = new BusinessPartnerDTO();
ConcreteBusinessPartnerDTO enduser = new ConcreteBusinessPartnerDTO();
ConcreteBusinessPartnerDTO manufacturer = new ConcreteBusinessPartnerDTO();
ConcreteBusinessPartnerDTO seller = new ConcreteBusinessPartnerDTO();
ConcreteBusinessPartnerDTO sourceOfCommodity = new ConcreteBusinessPartnerDTO();
String address = "somewhere";
bp1.setId(3L);
bp1.setName("john foo");
bp2.setId(4L);
bp1.setName("john too");
bp3.setId(5L);
bp1.setName("john luu");
bp4.setId(6L);
bp1.setName("john kof");
enduser.setId(3L);
enduser.setAddress(address);
enduser.setBusinessPartner(bp1);
manufacturer.setId(4L);
manufacturer.setAddress(address);
manufacturer.setBusinessPartner(bp2);
seller.setId(5L);
seller.setAddress(address);
seller.setBusinessPartner(bp3);
sourceOfCommodity.setId(6L);
sourceOfCommodity.setAddress(address);
sourceOfCommodity.setBusinessPartner(bp4);
dsp5.setDateOfIssue(DSP5_DATE);
dsp5.setEndDate(DSP5_DATE);
dsp5.setFreeText("blabla");
dsp5.setLicenseNumber("license 1");
dsp5.setType12327(false);
dsp5.setEndUser(enduser);
dsp5.setManufacturer(manufacturer);
dsp5.setSeller(seller);
dsp5.setSourceOfCommodity(sourceOfCommodity);
dsp5Service.saveDocument(dsp5);
}