@Test
public void put() {

	JsonHash jsonHash = new JsonHash();
	jsonHash.put("null", (Object) null);
	jsonHash.put("string", "str");
	jsonHash.put("boolean", true);
	jsonHash.put("double", 1.1);
	jsonHash.put("float", 1.1f);
	jsonHash.put("byte", (byte) 1);
	jsonHash.put("short", (short) 1);
	jsonHash.put("int", 1);
	jsonHash.put("long", 1L);
	jsonHash.put("array", new JsonArray());
	jsonHash.put("hash", new JsonHash());
	assertThat(jsonHash.getType("null"), is(Type.NULL));
	assertThat(jsonHash.getType("string"), is(Type.STRING));
	assertThat(jsonHash.getType("boolean"), is(Type.BOOLEAN));
	assertThat(jsonHash.getType("double"), is(Type.DOUBLE));
	assertThat(jsonHash.getType("float"), is(Type.DOUBLE));
	assertThat(jsonHash.getType("byte"), is(Type.LONG));
	assertThat(jsonHash.getType("short"), is(Type.LONG));
	assertThat(jsonHash.getType("int"), is(Type.LONG));
	assertThat(jsonHash.getType("long"), is(Type.LONG));
	assertThat(jsonHash.getType("array"), is(Type.ARRAY));
	assertThat(jsonHash.getType("hash"), is(Type.HASH));
	jsonHash.clear();
	jsonHash.put("null", (Object) null);
	jsonHash.put("string", (String) null);
	jsonHash.put("boolean", (Boolean) null);
	jsonHash.put("double", (Double) null);
	jsonHash.put("float", (Float) null);
	jsonHash.put("byte", (Byte) null);
	jsonHash.put("short", (Short) null);
	jsonHash.put("int", (Integer) null);
	jsonHash.put("long", (Long) null);
	jsonHash.put("array", (JsonArray) null);
	jsonHash.put("hash", (JsonHash) null);
	assertThat(jsonHash.getType("null"), is(Type.NULL));
	assertThat(jsonHash.getType("string"), is(Type.NULL));
	assertThat(jsonHash.getType("boolean"), is(Type.NULL));
	assertThat(jsonHash.getType("double"), is(Type.NULL));
	assertThat(jsonHash.getType("float"), is(Type.NULL));
	assertThat(jsonHash.getType("byte"), is(Type.NULL));
	assertThat(jsonHash.getType("short"), is(Type.NULL));
	assertThat(jsonHash.getType("int"), is(Type.NULL));
	assertThat(jsonHash.getType("long"), is(Type.NULL));
	assertThat(jsonHash.getType("array"), is(Type.NULL));
	assertThat(jsonHash.getType("hash"), is(Type.NULL));
}