RandomXorEncoderFactory implements Encoder.Factory { @Override public Encoder createEncoder() { return new RandomXorEncoder.Builder().build(); } private  RandomXorEncoderFactory(); @Override Encoder createEncoder(); static RandomXorEncoderFactory create();  }
@Test public void createEncoder(){ RandomXorEncoderFactory factory = RandomXorEncoderFactory.create(); Encoder encoder = factory.createEncoder(); assertNotNull(encoder); }