class CoverageService {

    int indexOf(List<AxisPointDTO> points, String id) {
        for (int i = 0; i < points.size(); i++) {
            if (id.equals(points.get(i).getId())) {
                return i;
            }
        }
        throw new NotGonnaHappenException("Ids are generated from the points, so it's unlikely an unknown id will be requested");
    }

}