*
* @throws Exception BAM!
*/
@Test
public void testGroups() throws Exception {
Employee bean = super.newValidBean();
service.doSomethingWithGroups(bean);
int errors = 0;
bean.setStricterValueThanOthers("AC");
try {
service.doSomethingWithGroups(bean);
} catch (EJBException wrapped) {
ConstraintViolationException ve = (ConstraintViolationException) wrapped.getCausedByException();
errors = ve.getConstraintViolations().size();