}
@Test
public final void testUpdateCustomerSucceed() {
FullCustomerDto custDto = new FullCustomerDto();
custDto.setFirstName("Johan");
custDto.setLastName("Vogelzang");
custDto.setCustomerNr(54321);
custDto.setDiscountPercentage(0);
custDto.setBirthDate(new DateTime(2008, 1, 1, 1, 1, 0, 0));
Long customerId = customerServiceModelService.createCustomer(custDto);
custDto = customerServiceModelService.readCustomerAsFullCustomerDto(customerId);
flush();
custDto.setDiscountPercentage(100);
customerServiceModelService.updateCustomer(custDto);
custDto = customerServiceModelService.readCustomerAsFullCustomerDto(customerId);
assertTrue("DiscountPercentage should be 100", custDto.getDiscountPercentage() == 100);
}