CompressionDelegate extends Delegate { public void setCompressionMethods(List<CompressionMethod> compressionMethods) { this.compressionMethods = compressionMethods; } CompressionDelegate(); List<CompressionMethod> getCompressionMethods(); void setCompressionMethods(List<CompressionMethod> compressionMethods); @Override void applyDelegate(Config config);  }
@Test public void testSetCompressionMethods() { LinkedList<CompressionMethod> supportedCompressions = new LinkedList<>(); supportedCompressions.add(CompressionMethod.LZS); delegate.setCompressionMethods(supportedCompressions); assertTrue("CompressionMethods setter is not working correctly", delegate.getCompressionMethods().equals(supportedCompressions)); }