private IDao<Redis> redisDao = new RedisDaoImpl(storage);
@Test
public void employeeDaoTest() {
//Create 2 employees
Employee employee1 = new Employee(350);
Employee employee2 = new Employee(700);
//Save employees in database
employee1 = employeeDao.save(employee1);
employee2 = employeeDao.save(employee2);
//Get it from database
Employee get1 = employeeDao.get(employee1.getId());
Employee get2 = employeeDao.get(employee2.getId());
//Assert employees
Assert.assertEquals(employee1, get1);
Assert.assertEquals(employee2, get2);
//Change salary of employee1
employee1.setSalary(1000);
employeeDao.update(employee1);
//Check update state
Employee updated = employeeDao.get(employee1.getId());
Assert.assertEquals(1000, updated.getSalary());
//Delete changed employee
boolean success = employeeDao.delete(updated);
Assert.assertTrue(success);
Employee mustBeDeleted = employeeDao.get(updated.getId());
Assert.assertNull(mustBeDeleted);
}