*/
@Test
public void loadExistingSchemaShouldMapFieldInformationCorrectly() {
setUpJsonResponse(JSON_RESPONSE_DEFAULT_SCHEMA);
FieldDefinition fieldDef = writer.loadExistingSchema("collection1").getFieldDefinition("id");
Assert.assertEquals("id", fieldDef.getName());
Assert.assertEquals("string", fieldDef.getType());
Assert.assertEquals(false, fieldDef.isMultiValued());
Assert.assertEquals(true, fieldDef.isIndexed());
Assert.assertEquals(true, fieldDef.isRequired());
Assert.assertEquals(true, fieldDef.isStored());
}