### Question:
VehicleSearchServiceImpl implements VehicleSearchService { @Override public List<VehicleStatus> searchVehiclesInEmergency( List<VehicleStatus> vehicleStatusRecords) { Filter<VehicleStatus> emergencyFilter = new EmergencyStatusFilter(); List<VehicleStatus> vehiclesInEmergency = new ArrayList<VehicleStatus>(); for(VehicleStatus vehicleStatus : vehicleStatusRecords) { if(emergencyFilter.apply(vehicleStatus)) { vehiclesInEmergency.add(vehicleStatus); } } return vehiclesInEmergency; }  @Override List<VehicleStatus> search(List<VehicleStatus> vehicleStatusRecords,
			Map<VehicleSearchParameters, String> searchParameters); @Override List<VehicleStatus> searchVehiclesInEmergency(
			List<VehicleStatus> vehicleStatusRecords); @Override List<VehicleStatus> searchVehiclesInRevenueService(
			List<VehicleStatus> vehicleStatusRecords); @Override List<VehicleStatus> searchVehiclesTracked(int minutes, List<VehicleStatus> vehicleStatusRecords); @Override List<VehicleStatus> searchActiveRuns();  }### Answer:
@Test public void testEmergencyVehicleCount() { List<VehicleStatus> vehicleStatusRecords = buildVehicleStatusRecords(); List<VehicleStatus> vehiclesInemergency = service.searchVehiclesInEmergency(vehicleStatusRecords); assertEquals("Expecting 1 vehicle in emeergency", vehiclesInemergency.size(), 1); }