@Test
void fromVehicle() {

    long id = 321;
    String name = "Pink XY-123 B";
    int capacity = 31;
    PortableVehicle portableVehicle = PortableVehicle.fromVehicle(VehicleFactory.createVehicle(id, name, capacity));
    assertThat(portableVehicle.getId()).isEqualTo(id);
    assertThat(portableVehicle.getName()).isEqualTo(name);
    assertThat(portableVehicle.getCapacity()).isEqualTo(capacity);
    assertThatNullPointerException()
            .isThrownBy(() -> PortableVehicle.fromVehicle(null))
            .withMessageContaining("vehicle");
}