### Question:
CarsFactory { public static Car getCar(CarType type) { return type.getConstructor().get(); }  static Car getCar(CarType type);  }### Answer:
@Test void shouldReturnFerrariInstance() { final var ferrari = CarsFactory.getCar(CarType.FERRARI); assertTrue(ferrari instanceof Ferrari); }