@Test
public void testGetOutputCommitter() throws IOException {

  OutputCommitter committer = outputFormat.getOutputCommitter(mockTaskAttemptContext);
  // Verify the delegate is being called and the mock OutputCommitter is returned.
  assertThat(committer).isEqualTo(mockOutputCommitter);
  verify(mockFileOutputFormat).getOutputCommitter(eq(mockTaskAttemptContext));
}