### Question:
GuaguaRecordWriter extends RecordWriter<Text, Text> { @Override public void close(TaskAttemptContext context) throws IOException, InterruptedException { }  @Override void close(TaskAttemptContext context); @Override void write(Text key, Text value);  }### Answer:
@Test public void testClose() { try { writer.close(null); } catch (IOException e) { throw new RuntimeException(e); } catch (InterruptedException e) { throw new RuntimeException(e); } }