@Test(dependsOnMethods = "update")
 public void delete() throws Exception {
   Drivers drivers = repository.findOne(id);
   repository.delete(drivers);
   Drivers deleted = repository.findOne(id);
   Assert.assertNull(deleted);
 }
 @Test(dependsOnMethods = "create")
 public void read() throws Exception {
   Drivers drivers = repository.findOne(id);
   Assert.assertNotNull(drivers);
   Assert.assertEquals("Johan", drivers.getName());
   Assert.assertEquals("Porsche", drivers.getVehicle());
 }
  @Test
  public void create() throws Exception {
    List<Classes> classList = new ArrayList();

    Classes classes = new Classes.Builder("S&GT").className("Sports & GT").build();
    classList.add(classes);

    Drivers drivers = DriversFactory.createDriver("Johan", "Porsche");

    repository.save(drivers);

    id = drivers.getId();

    Assert.assertNotNull(drivers.getId());
  }