Parking { @Override public String toString() { return new ParkingMatrixFormatter(edge, slots).toMatrixString(); } Parking(int edge, Set<Integer> pedestrianEntries, Set<Integer> disabledBays); int parkCar(char carType); boolean unparkCar(int index); @Override String toString(); int getAvailableBays();  }
@Test public void testToString() { assertEquals("UUUUU\nU=UU@\n@U=UU\nUUUUU\nUUUUU", parking.toString()); }