### Question:
StudentRepository implements IUnitOfWork<Student> { @Override public void registerModified(Student student) { LOGGER.info("Registering {} for modify in context.", student.getName()); register(student, UnitActions.MODIFY.getActionValue()); } StudentRepository(Map<String, List<Student>> context, StudentDatabase studentDatabase); @Override void registerNew(Student student); @Override void registerModified(Student student); @Override void registerDeleted(Student student); @Override void commit();  }### Answer:
@Test public void shouldSaveModifiedStudentWithoutWritingToDb() { studentRepository.registerModified(student1); studentRepository.registerModified(student2); assertEquals(2, context.get(UnitActions.MODIFY.getActionValue()).size()); verifyNoMoreInteractions(studentDatabase); }