### Question:
BackupServiceImpl implements BackupService { @Override public void updateStatus(EnvBackupDTO dto, String user, EnvBackupStatus status) { backupDao.createOrUpdate(dto, user, status); }  @Override String createBackup(EnvBackupDTO dto, UserInfo user); @Override void updateStatus(EnvBackupDTO dto, String user, EnvBackupStatus status); @Override List<BackupInfoRecord> getBackups(String userName); @Override BackupInfoRecord getBackup(String userName, String id);  }### Answer:
@Test public void updateStatus() { doNothing().when(backupDao).createOrUpdate(any(EnvBackupDTO.class), anyString(), any(EnvBackupStatus.class)); EnvBackupDTO ebDto = EnvBackupDTO.builder().build(); backupService.updateStatus(ebDto, USER, EnvBackupStatus.CREATING); verify(backupDao).createOrUpdate(ebDto, USER, EnvBackupStatus.CREATING); verifyNoMoreInteractions(backupDao); }