### Question:
AlterStatementBuilder { public String buildWithDelimiter(String delimiter) { StringBuilder builder = startBuild() .append("SET SERDEPROPERTIES "); appendMap(builder, ImmutableMap.of("field.delim", delimiter == null ? "\\001" : delimiter)); return builder.toString(); } AlterStatementBuilder(String name, @Nullable String databaseName, String tableName, boolean escapeColumns); String buildWithLocation(Location location); String buildWithTableProperties(Map<String, String> tableProperties); String buildWithSchema(Schema schema); String buildWithSchema(String hiveSchema); String buildWithFileFormat(String fileFormat); String buildWithDelimiter(String delimiter); String buildWithFormats(String inputFormat, String outputFormat, String serde);  }### Answer:
@Test public void testWithDelimiter() throws Exception { String expected = "ALTER TABLE dataset_xyz SET SERDEPROPERTIES ('field.delim'='|')"; String actual = new AlterStatementBuilder("xyz", null, "dataset_xyz", true) .buildWithDelimiter("|"); Assert.assertEquals(expected, actual); expected = "ALTER TABLE dataset_xyz SET SERDEPROPERTIES ('field.delim'='\\001')"; actual = new AlterStatementBuilder("xyz", null, "dataset_xyz", true) .buildWithDelimiter(null); Assert.assertEquals(expected, actual); }