### Question:
AccumuloOutputFormat extends OutputFormat<Text,Mutation> { public static OutputFormatBuilder.ClientParams<Job> configure() { return new OutputFormatBuilderImpl<>(CLASS); }  @Override void checkOutputSpecs(JobContext job); @Override OutputCommitter getOutputCommitter(TaskAttemptContext context); @Override RecordWriter<Text,Mutation> getRecordWriter(TaskAttemptContext attempt); static OutputFormatBuilder.ClientParams<Job> configure();  }### Answer:
@Test public void testCreateTables() throws Exception { Job job = Job.getInstance(); String tableName = "test_create_tables"; Properties cp = Accumulo.newClientProperties().to("test", "zk").as("blah", "blah").build(); AccumuloOutputFormat.configure().clientProperties(cp).defaultTable(tableName).createTables(true) .store(job); assertEquals("Should have been able to create table", true, OutputConfigurator.canCreateTables(AccumuloOutputFormat.class, job.getConfiguration())); }
@Test public void testClientPropertiesPath() throws Exception { Job job = Job.getInstance(); Properties cp = Accumulo.newClientProperties().to("test", "zk").as("blah", "blah").build(); try { File file = File.createTempFile("accumulo-client", ".properties", null); file.deleteOnExit(); FileWriter writer = new FileWriter(file); writer.write("auth.type=password\n"); writer.write("instance.zookeepers=zk\n"); writer.write("instance.name=test\n"); writer.write("auth.principal=blah\n"); writer.write("auth.token=blah"); writer.close(); AccumuloOutputFormat.configure().clientPropertiesPath(file.getAbsolutePath()).store(job); assertEquals("Properties from path does not match the expected values ", cp, OutputConfigurator.getClientProperties(AccumuloOutputFormat.class, job.getConfiguration())); } catch (IOException e) { throw new IllegalStateException(e); } }