@Test
  public void scalarValueBoolean_serialize() {

    // make struct
    ScalarValueBooleanStruct struct = new ScalarValueBooleanStruct();
    struct.idx = 1;
    struct.value = true;

    // make Object
    ScalarValueBoolean scalarValueBoolean_0 = new ScalarValueBoolean(struct);

    // serialize
    String json = scalarValueBoolean_0.serialize();

    assertEquals("{\"t\":\"ScalarValueBoolean\",\"i\":1,\"v\":true}", json);

    ScalarValueBoolean scalarValueBoolean_1 = new ScalarValueBoolean(2, false);
    String json2 = scalarValueBoolean_1.serialize();

    assertEquals("{\"t\":\"ScalarValueBoolean\",\"i\":2,\"v\":false}", json2);
  }
  @Test
  public void scalarValueBoolean_deserialize() {

    String jsonString_0 = "{\"t\":\"ScalarValueBoolean\",\"i\":1,\"v\":true}";

    Object deserializedObject_0 = gsonController_.fromJson(jsonString_0);

    assertEquals(ScalarValueBoolean.class, deserializedObject_0.getClass());
    ScalarValueBoolean scalarValueBoolean_0 = (ScalarValueBoolean) deserializedObject_0;

    assertEquals(1, scalarValueBoolean_0.getIdx());
    assertEquals(true, scalarValueBoolean_0.getValue());

    String jsonString_1 = "{\"t\":\"ScalarValueBoolean\",\"i\":2,\"v\":false}";

    Object deserializedObject_1 = gsonController_.fromJson(jsonString_1);

    assertEquals(ScalarValueBoolean.class, deserializedObject_1.getClass());
    ScalarValueBoolean scalarValueBoolean_1 = (ScalarValueBoolean) deserializedObject_1;

    assertEquals(2, scalarValueBoolean_1.getIdx());
    assertEquals(false, scalarValueBoolean_1.getValue());
  }