Pregunta de entrevista de Tata Consultancy Services

Asked about Java Generics and its advantages. How will you unit test database based classes.