### Question:
VehicleSearchServiceImpl implements VehicleSearchService { @Override public List<VehicleStatus> searchVehiclesInRevenueService( List<VehicleStatus> vehicleStatusRecords) { Filter<VehicleStatus> revenueServiceFilter = new RevenueServiceFilter(); List<VehicleStatus> vehiclesInRevenueService = new ArrayList<VehicleStatus>(); for(VehicleStatus vehicleStatus : vehicleStatusRecords) { if(revenueServiceFilter.apply(vehicleStatus)) { vehiclesInRevenueService.add(vehicleStatus); } } return vehiclesInRevenueService; }  @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 testRevenueServiceVehicleCount() { List<VehicleStatus> vehicleStatusRecords = buildVehicleStatusRecords(); List<VehicleStatus> vehiclesInRevenueService = service.searchVehiclesInRevenueService(vehicleStatusRecords); assertEquals("Expecting 2 vehicles in emeergency", vehiclesInRevenueService.size(), 2); }