@Test
public void testGetDelegate() throws IOException {

  // Setup configuration.
  outputFormat.setDelegate(null);
  FileOutputFormat<Text, Text> delegate = outputFormat.getDelegate(conf);
  // Verify the delegate is the correct type.
  assertThat(delegate).isInstanceOf(TextOutputFormat.class);
}