### Question:
MainActivityViewModel extends ViewModel { void deleteStudent(@NonNull String student) { repository.deleteStudent(student); } MainActivityViewModel(@NonNull Repository repository);   }### Answer:
@Test public void testDeleteStudent() { String studentToDelete = "German"; viewModel.deleteStudent(studentToDelete); Mockito.verify(repository).deleteStudent(studentToDelete); }