### Question:
CompressionTransformFactory extends
        TransformFactory<CompressionOutputTransform, CompressionInputTransform> { @Override public CompressionOutputTransform getOutputTransform( OutputStream streamToEncodeTo, Map<String, String> metadataToEncode) throws IOException { switch(compressMode) { case Deflate: return new DeflateOutputTransform(streamToEncodeTo, metadataToEncode, compressionLevel); case LZMA: return new LZMAOutputTransform(streamToEncodeTo, metadataToEncode, compressionLevel); default: throw new IllegalArgumentException("Unsupported compression method " + compressMode); } } CompressionTransformFactory(); CompressionMode getCompressMode(); void setCompressMode(CompressionMode compressMode); int getCompressionLevel(); void setCompressionLevel(int compressionLevel); @Override CompressionOutputTransform getOutputTransform(
            OutputStream streamToEncodeTo, Map<String, String> metadataToEncode); @Override CompressionOutputTransform getOutputTransform(
            InputStream streamToEncode, Map<String, String> metadataToEncode); @Override CompressionInputTransform getInputTransform(String transformConfig, InputStream streamToDecode, Map<String, String> metadata); @Override String getTransformClass(); boolean canDecode(String transformClass, String config, Map<String,String> metadata); static long memoryRequiredForLzma(int compressionLevel); static long memoryRequiredForLzma(LzmaProfile profile); public CompressionMode compressMode; public int compressionLevel; static LzmaProfile LZMA_COMPRESSION_PROFILE; }### Answer:
@Test public void testGetOutputTransform() throws IOException { CompressionTransformFactory factory = new CompressionTransformFactory(); CompressionOutputTransform t = factory.getOutputTransform(new ByteArrayOutputStream(), new HashMap<String, String>()); assertNotNull("output transform null", t); }