CompressParser implements ProxyContentParser.SubOptionParser { @Override public String output() { return String.format("%s %s %s", ProxyContentParser.ContentType.COMPRESS.name(), algorithm.getType().name(), algorithm.version()); }  @Override String output(); @Override ProxyContentParser.SubOptionParser parse(String... subOption); @Override boolean isImportant(); CompressAlgorithm getAlgorithm(); CompressParser setAlgorithm(CompressAlgorithm algorithm);  }
@Test public void testOutput() { parser.setAlgorithm(new CompressAlgorithm() { @Override public String version() { return "1.0"; } @Override public AlgorithmType getType() { return AlgorithmType.ZSTD; } }); Assert.assertEquals("COMPRESS ZSTD 1.0", parser.output()); }