} catch (IllegalArgumentException ex) {
// ok
}
ExtraService es = newService("Window cleaning", "Thorough window and mirror cleaning", BigDecimal.valueOf(22.2));
ExtraServiceTO esto = mapper.map(es, ExtraServiceTO.class);
try {
service.update(esto);
fail("exception should be thrown");
} catch (IllegalArgumentException ex) {
// ok
}
try {
service.remove(esto);
fail("exception should be thrown");
} catch (IllegalArgumentException ex) {
// ok
}
esto.setId(1L);
try {
service.create(esto);
fail("exception should be thrown");
} catch (IllegalArgumentException ex) {
// ok