### Question:
FoodMapServiceImpl implements FoodMapService { @Override public Response getFoodStoresByStationIds(List<String> stationIds) { List<FoodStore> foodStoreList = foodStoreRepository.findByStationIdIn(stationIds); if (foodStoreList != null) { return new Response<>(1, success, foodStoreList); } else { return new Response<>(0, noContent, null); } }  @Override Response createFoodStore(FoodStore fs, HttpHeaders headers); @Override TrainFood createTrainFood(TrainFood tf, HttpHeaders headers); @Override Response listFoodStores(HttpHeaders headers); @Override Response listTrainFood(HttpHeaders headers); @Override Response listFoodStoresByStationId(String stationId, HttpHeaders headers); @Override Response listTrainFoodByTripId(String tripId, HttpHeaders headers); @Override Response getFoodStoresByStationIds(List<String> stationIds);  }### Answer:
@Test public void testGetFoodStoresByStationIds1() { List<String> stationIds = new ArrayList<>(); List<FoodStore> foodStoreList = new ArrayList<>(); foodStoreList.add(new FoodStore()); Mockito.when(foodStoreRepository.findByStationIdIn(Mockito.anyList())).thenReturn(foodStoreList); Response result = foodMapServiceImpl.getFoodStoresByStationIds(stationIds); Assert.assertEquals(new Response<>(1, "Success", foodStoreList), result); }
@Test public void testGetFoodStoresByStationIds2() { List<String> stationIds = new ArrayList<>(); Mockito.when(foodStoreRepository.findByStationIdIn(Mockito.anyList())).thenReturn(null); Response result = foodMapServiceImpl.getFoodStoresByStationIds(stationIds); Assert.assertEquals(new Response<>(0, "No content", null), result); }