@Test public void serializeCommandResponseUsesStringCommand() { boolean status = true; String serialized = JsonFormatter.serialize(new CommandResponse( Command.CommandType.VERSION, true)); assertThat(serialized, containsString("version")); }
public static String serialize(VehicleMessage message) { return sGson.toJson(message); }
JsonFormatter { public static String serialize(VehicleMessage message) { return sGson.toJson(message); } }
JsonFormatter { public static String serialize(VehicleMessage message) { return sGson.toJson(message); }  }
JsonFormatter { public static String serialize(VehicleMessage message) { return sGson.toJson(message); }  static String serialize(VehicleMessage message); static String serialize(Collection<VehicleMessage> messages); static VehicleMessage deserialize(String data); }
JsonFormatter { public static String serialize(VehicleMessage message) { return sGson.toJson(message); }  static String serialize(VehicleMessage message); static String serialize(Collection<VehicleMessage> messages); static VehicleMessage deserialize(String data);  }