BikeValidator v = (BikeValidator) ctx.getBean("bikeValidator");
Bike bike = new Bike("test", "test", 1, "test", 2.00, "test");
Errors errs = new BindException(bike, "bike");
v.validate(bike, errs);
assertFalse(errs.hasErrors());
bike = new Bike();
errs = new BindException(bike, "bike");
v.validate(bike, errs);
assertTrue(errs.hasErrors());