// New group set in defaultsequence for Car as per CarGroupSequenceProvider should be implemented now
Assert.assertEquals(2, result.size());
car.setDriver(driver);
// implementing validation for group associated with associated objects of Car(in this case Driver)
Set<ConstraintViolation<Car>> driverResult = validator.validate(car, DriverChecks.class);
Assert.assertEquals(1, driverResult.size());
driver.setHasValidDrivingLicense(true);
Assert.assertEquals(0, validator.validate(car, DriverChecks.class).size());
car.setSeats(5);