public void testGetSchema() throws IOException, ServiceException {
RestSearchCloudClient client = new RestSearchCloudClient(new DefaultHttpClientFactory(), getUri(), "apikey");
String modelId = "test_GetSchema";
DocumentSchema schema = client.getSchema(new GetSchemaRequest(modelId));
Assert.assertNotNull(schema);
DocumentSchemaBuilder builder = new DocumentSchemaBuilder();
DocumentSchema expectedSchema = builder.withField("string", new StringFieldType(Language.ZH_TW)).withField(
"date", new DateFieldType()).withField("location", new LocationFieldType()).withField("int",
new IntegerFieldType(true)).withField("double", new DoubleFieldType(true)).build();
Assert.assertEquals(schema, expectedSchema);
}