@Test
public void testDuplicate() {

	SequenceFileWriter<Text, Text> writer = new SequenceFileWriter("BZ", SequenceFile.CompressionType.BLOCK);
	writer.setSyncOnFlush(true);
	Writer<Tuple2<Text, Text>> other = writer.duplicate();
	assertTrue(writer.equals(other));
	writer.setSyncOnFlush(false);
	assertFalse(writer.equals(other));
}