### Question:
HealthCheck { private HealthCheck() {} private  HealthCheck(); static void doSurveiller();  }### Answer:
@Test public void testHealthCheck() throws Exception { MockUp<DBQueryUtil> dbMock = new MockUp<DBQueryUtil>() { @Mock public List<HealthCheckVO> getSurveillerDetailsOfComponent(boolean isDummy){ List<HealthCheckVO> result = new ArrayList<HealthCheckVO>(); HealthCheckVO hc = new HealthCheckVO(); hc.setHealthCheckTypeClassName("com.tmobile.kardio.surveiller.handler.URLOpenableHandler"); result.add(hc); return result; } @Mock public List<HealthCheckVO> updateHealthCheckStatusInDB(List <HealthCheckVO> hcvs){ List<HealthCheckVO> result = new ArrayList<HealthCheckVO>(); HealthCheckVO hc = new HealthCheckVO(); hc.setHealthCheckTypeClassName("com.tmobile.kardio.surveiller.handler.URLOpenableHandler"); result.add(hc); return result; } }; MockUp<MailSenderUtil> mailMock = new MockUp<MailSenderUtil>() { @Mock public void sendMailForHealthCheckVos(List<HealthCheckVO> hcvs) { } }; HealthCheck.doSurveiller(); dbMock.tearDown(); mailMock.tearDown(); }