@Test
public void testSetCodec() throws Exception {

	// given
	final AvroOutputFormat<User> outputFormat = new AvroOutputFormat<>(User.class);
	// when
	try {
		outputFormat.setCodec(AvroOutputFormat.Codec.SNAPPY);
	} catch (Exception ex) {
		// then
		fail("unexpected exception");
	}
}