@Autowired
private ICustomerService customerService;
@Test
public void addPersonalCustomerTest() {
Customer personalCustomer = new PersonalCustomer(new Date(), "453");
personalCustomer.setApartment((short) 10);
personalCustomer.setCity("Test");
personalCustomer.setCountry("Test");
personalCustomer.setEmail("test2@email.com");
personalCustomer.setHouse((short) 2);
personalCustomer.setHousing(null);
personalCustomer.setName("Test");
personalCustomer.setPassword("TEST");
personalCustomer.setPatronymic("Testovich");
personalCustomer.setPhone("5345343");
personalCustomer.setProvince("Test");
personalCustomer.setRole(EUserRole.CUSTOMER);
personalCustomer.setStreet("Test");
personalCustomer.setSurname("Testov");
personalCustomer.setZip("223344");
Long id = customerService.addCustomer(personalCustomer);
personalCustomer = customerService.getCustomerById(id);
personalCustomer.setSurname("TETETETE");
personalCustomer = customerService.updateCustomer(personalCustomer);
}