DocumentSchemaBuilder documentSchemaBuilder = new DocumentSchemaBuilder();
DocumentSchema schema = documentSchemaBuilder.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();
SetSchemaRequest buildSchemaRequest = new SetSchemaRequest("BuildSchemaRequestBuilderTest", schema);
setTrackingVariables(buildSchemaRequest);
SetSchemaRequestBuilder buildSchemaRequestBuilder = new SetSchemaRequestBuilder();
HttpUriRequest httpUriRequest = buildSchemaRequestBuilder.build(buildSchemaRequest);
Assert.assertEquals(httpUriRequest.getClass(), HttpPut.class);