@Test
void vehicleData() {

    String name = "vehicle name";
    int capacity = 1000;
    VehicleData vehicleData = VehicleFactory.vehicleData(name, capacity);
    assertThat(vehicleData.name()).isEqualTo(name);
    assertThat(vehicleData.capacity()).isEqualTo(capacity);
}