### Question:
CBMutationOutputFormatter extends AccumuloOutputFormat { public static void setOutputInfo(Job job, String user, byte[] passwd, boolean createTables, String defaultTable) throws AccumuloSecurityException { AccumuloOutputFormat.setConnectorInfo(job, user, new PasswordToken(passwd)); AccumuloOutputFormat.setCreateTables(job, createTables); AccumuloOutputFormat.setDefaultTableName(job, defaultTable); }  static void setOutputInfo(Job job, String user, byte[] passwd, boolean createTables, String defaultTable); @Override RecordWriter<Text,Mutation> getRecordWriter(TaskAttemptContext attempt);  }### Answer:
@Test public void testSetOutputInfo() throws AccumuloSecurityException { CBMutationOutputFormatterTest.logger.info("testSetOutputInfo called..."); try { Job job = createMockJob(); String user = "user"; byte[] passwd = "passw0rd".getBytes(); boolean createTables = false; String defaultTable = "default-table"; CBMutationOutputFormatter.setOutputInfo(job, user, passwd, createTables, defaultTable); PasswordToken pt = new PasswordToken(passwd); String ptStr = TokenSource.INLINE.prefix() + PasswordToken.class.getName() + ":" + Base64.encodeBase64String(AuthenticationToken.AuthenticationTokenSerializer.serialize(pt)); Assert.assertTrue("CBMutationOutputFormatter#setOutputInfo failed to set 'username'", CBMutationOutputFormatterTest.mockedConfiguration.containsValue(user)); Assert.assertTrue("CBMutationOutputFormatter#setOutputInfo failed to set credential token", CBMutationOutputFormatterTest.mockedConfiguration.containsValue(ptStr)); Assert.assertTrue("CBMutationOutputFormatter#setOutputInfo failed to set default table name", CBMutationOutputFormatterTest.mockedConfiguration.containsValue(defaultTable)); Assert.assertTrue("CBMutationOutputFormatter#setOutputInfo failed to set create table value", CBMutationOutputFormatterTest.mockedConfiguration.containsValue("false")); Assert.assertTrue("CBMutationOutputFormatter#setOutputInfo failed to set 'username'", this.wasPropertySet(AccumuloOutputFormat.class.getSimpleName(), user)); Assert.assertTrue("CBMutationOutputFormatter#setOutputInfo failed to set credential token", this.wasPropertySet(AccumuloOutputFormat.class.getSimpleName(), ptStr)); Assert.assertTrue("CBMutationOutputFormatter#setOutputInfo failed to set default table name", this.wasPropertySet(AccumuloOutputFormat.class.getSimpleName(), defaultTable)); Assert.assertTrue("CBMutationOutputFormatter#setOutputInfo failed to set create table", this.wasPropertySet(AccumuloOutputFormat.class.getSimpleName(), "false")); } finally { CBMutationOutputFormatterTest.logger.info("testSetOutputInfo completed."); } }