### Question:
AuditLogServiceImpl extends AbstractBaseService<AuditLogEntity> implements AuditLogService { @Override public void deleteBy(Long minId) { auditLogRepository.deleteBy(minId); }  @Override long insert(AuditLogEntity entity); @Override long getMindId(); @Override void deleteBy(Long minId); @Override void recordAudit(String tbName, long refId, String content); @Override AuditLogResponse logList(AuditLogRequest auditLogRequest);  }### Answer:
@Test public void deleteByTest() { AuditLogServiceImpl auditLogServiceImpl=new AuditLogServiceImpl(); UserInfoHolder userInfoHolder=mock(UserInfoHolder.class); AuditLogRepository auditLogRepository=mock(AuditLogRepository.class); ReflectionTestUtils.setField(auditLogServiceImpl, "userInfoHolder", userInfoHolder); ReflectionTestUtils.setField(auditLogServiceImpl, "auditLogRepository", auditLogRepository); auditLogServiceImpl.init(); doNothing().when(auditLogRepository).delete(0); auditLogServiceImpl.delete(0); verify(auditLogRepository).delete(anyLong()); }