DefaultProxyContentParser implements ProxyOptionParser, ProxyContentParser { @Override public String output() { return String.format("%s %s", CONTENT.name(), subOptionParser.output()); }  @Override String output(); @Override ProxyOptionParser read(String option); @Override PROXY_OPTION option(); @Override boolean isImportant(); DefaultProxyContentParser setSubOptionParser(SubOptionParser subOptionParser); DefaultProxyContentParser setType(ContentType type); @Override SubOptionParser getSubOption(); @Override ContentType getContentType();  }
@Test public void testOutput() { CompressParser compressParser = new CompressParser(); compressParser.setAlgorithm(new CompressAlgorithm() { @Override public String version() { return "1.0"; } @Override public AlgorithmType getType() { return AlgorithmType.ZSTD; } }); parser.setSubOptionParser(compressParser); Assert.assertEquals("CONTENT COMPRESS ZSTD 1.0", parser.output()); }