    @Test
    public void writeAndReadFromParcel() {

        Parcel parcel = Parcel.obtain();
        message.writeToParcel(parcel, 0);

        // Reset parcel for reading
        parcel.setDataPosition(0);

        VehicleMessage createdFromParcel =
                VehicleMessage.CREATOR.createFromParcel(parcel);
        assertThat(createdFromParcel, instanceOf(SimpleVehicleMessage.class));
        assertEquals(message, createdFromParcel);
    }