*/
@SuppressWarnings("unchecked")
@Test
public void idPropertyShouldBeResolvedCorrectly() {
FieldDefinition fieldDef = schemaResolver.createFieldDefinitionForProperty(getPropertyFor("id", Foo.class));
assertThat(
fieldDef,
allOf(hasProperty("name", equalTo("id")), hasProperty("multiValued", equalTo(false)),
hasProperty("indexed", equalTo(true)), hasProperty("stored", equalTo(true)),
hasProperty("type", equalTo("string")), hasProperty("defaultValue", equalTo(null))));