### Question:
MarathonBackUpTask { public static void doMarathonBackUp() throws Exception { logger.info("************** STARTED MarathonBackUp **************"); List<EnvironmentVO> environmentVOs = DBQueryUtil.getAllEnvironments(); for(EnvironmentVO eVo : environmentVOs){ getMarathonJson(eVo); logger.info("Got Marathon JSON for " + eVo.getEnvironmentName() + " Time : " + new Date()); logger.info("JSON " + eVo.getMarathonJson()); } DBQueryUtil.updateEnvironmentDetails(environmentVOs); MarathonConfigProcessor.updateApiList(environmentVOs); logger.info("************** COMPLETED MarathonBackUp **************"); } private  MarathonBackUpTask(); static void doMarathonBackUp();  }### Answer:
@Test public void doMarathonBackUp() throws Exception{ new MockUp<DBQueryUtil>() { @Mock public List<EnvironmentVO> getAllEnvironments() throws SerialException, SQLException{ EnvironmentVO env = new EnvironmentVO(); File resourcesDirectory = new File("src/test/data"); String content = null; List<EnvironmentVO> envList = new ArrayList<EnvironmentVO>(); envList.add(env); return envList; } }; MarathonBackUpTask.doMarathonBackUp(); }