@@ -0,0 +1,2468 @@
+package com.openxc.messages;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.*;%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertFalse;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.RobolectricTestRunner;%0Aimport org.robolectric.annotation.Config;%0A%0Aimport android.os.Parcel;%0A%0A@Config(emulateSdk = 18, manifest = Config.NONE)%0A@RunWith(RobolectricTestRunner.class)%0Apublic class EventedSimpleVehicleMessageTest %7B%0A    EventedSimpleVehicleMessage message;%0A    Double value = Double.valueOf(42);%0A    Double event = Double.valueOf(21);%0A    String name = %22foo%22;%0A%0A    @Before%0A    public void setup() %7B%0A        message = new EventedSimpleVehicleMessage(name, value, event);%0A    %7D%0A%0A    @Test%0A    public void sameEquals() %7B%0A        assertEquals(message, message);%0A    %7D%0A%0A    @Test%0A    public void sameEventEquals() %7B%0A        EventedSimpleVehicleMessage anotherMessage = new EventedSimpleVehicleMessage(%0A                message.getTimestamp(), name, value, event);%0A        assertEquals(message, anotherMessage);%0A    %7D%0A%0A    @Test%0A    public void differentEventDoesntEqual() %7B%0A        NamedVehicleMessage anotherMessage = new EventedSimpleVehicleMessage(%0A                name, Double.valueOf(24), Double.valueOf(444.1));%0A        assertFalse(message.equals(anotherMessage));%0A    %7D%0A%0A    @Test%0A    public void toStringNotNull() %7B%0A        assertThat(message.toString(), notNullValue());%0A    %7D%0A%0A    @Test%0A    public void eventAsNumber() %7B%0A        assertEquals(message.getEventAsNumber(), event);%0A    %7D%0A%0A    @Test%0A    public void eventAsString() %7B%0A        message = new EventedSimpleVehicleMessage(name, value, %22foo%22);%0A        assertEquals(message.getEventAsString(), %22foo%22);%0A    %7D%0A%0A    @Test%0A    public void eventAsBoolean() %7B%0A        message = new EventedSimpleVehicleMessage(name, value,%0A                Boolean.valueOf(true));%0A        assertEquals(message.getEventAsBoolean(), true);%0A    %7D%0A%0A    @Test%0A    public void writeAndReadFromParcel() %7B%0A        Parcel parcel = Parcel.obtain();%0A        message.writeToParcel(parcel, 0);%0A%0A        // Reset parcel for reading%0A        parcel.setDataPosition(0);%0A%0A        VehicleMessage createdFromParcel =%0A                VehicleMessage.CREATOR.createFromParcel(parcel);%0A        assertThat(createdFromParcel, instanceOf(EventedSimpleVehicleMessage.class));%0A        assertEquals(message, createdFromParcel);%0A    %7D%0A%7D%0A

Add tests for EventedSimpleVehicleMessage.