### Question:
BusLine extends AbstractBusContainer<BusNetwork, BusItinerary> { public int indexOf(BusItinerary itinerary) { return this.itineraries.indexOf(itinerary); } BusLine(BusNetwork network, String name);  BusLine(UUID id, BusNetwork network, String name);  BusLine(BusNetwork network, String name, AttributeCollection attributeProvider);  BusLine(UUID id, BusNetwork network, String name, AttributeCollection attributeProvider);  BusLine(String name);  BusLine(UUID id, String name);  BusLine(String name, AttributeCollection attributeProvider);  BusLine(UUID id, String name, AttributeCollection attributeProvider);  BusLine(BusNetwork network);  BusLine(UUID id, BusNetwork network);  BusLine(BusNetwork network, AttributeCollection attributeProvider);  BusLine(UUID id, BusNetwork network, AttributeCollection attributeProvider);  BusLine();  BusLine(UUID id);  BusLine(AttributeCollection attributeProvider);  BusLine(UUID id, AttributeCollection attributeProvider); @Override @Pure void toJson(JsonBuffer buffer); static String getFirstFreeBusLineName(BusNetwork network); @Override void rebuild(boolean fireEvents); @Override Class<? extends BusItinerary> getElementType(); @Override BusNetwork getBusNetwork(); @Override void setName(String name); @Override void resetBoundingBox(); @Override Shape2d<?> getShape(); @Pure Path2d toPath2D(); @Pure void toPath2D(Path2d path); @Override int size(); @Override Iterator<BusItinerary> iterator(); boolean addBusItinerary(BusItinerary busItinerary); boolean addBusItinerary(BusItinerary busItinerary, int index); void removeAllBusItineraries(); boolean removeBusItinerary(BusItinerary itinerary); boolean removeBusItinerary(int index); int getBusItineraryCount(); int indexOf(BusItinerary itinerary); @Override int indexInParent(); BusItinerary getBusItineraryAt(int index); BusItinerary getBusItinerary(String name); BusItinerary getBusItinerary(UUID uuid); BusItinerary getBusItinerary(String name, Comparator<String> nameComparator); Iterator<BusItinerary> busItineraryIterator(); Iterable<BusItinerary> busItineraries();  }### Answer:
@Test public void testIndexOfBusItinerary() { assertEquals(-1, this.line.indexOf(this.itinerary1)); assertEquals(-1, this.line.indexOf(this.itinerary2)); initTest(); assertEquals(0, this.line.indexOf(this.itinerary1)); assertEquals(1, this.line.indexOf(this.itinerary2)); }