@Test
	public void testObject() {

		User expected = new User(User.Gender.MALE, "Joe", "Sixpack", 30, false);

		Value value = new Value(
				"{\"name\": {\"first\": \"Joe\", \"last\": \"Sixpack\"}, \"gender\": \"MALE\", \"age\": 30, \"verified\": false}");

		assertThat(expected, equalTo(value.object(User.class)));

		expected = new User(User.Gender.FEMALE, "Holly", "Molly", 25, true);

		value = new Value(
				"{\"name\": {\"first\": \"Holly\", \"last\": \"Molly\"}, \"gender\": \"FEMALE\", \"age\": 25, \"verified\": true}");

		assertThat(expected, equalTo(value.object(User.class)));

	}