### Question:
OptimizerConfig { public float getJpegCompression() { return jpegCompression; } @Inject  OptimizerConfig(
      @Named("shindig.image-rewrite.max-inmem-bytes") int maxInMemoryBytes,
      @Named("shindig.image-rewrite.max-palette-size") int maxPaletteSize,
      @Named("shindig.image-rewrite.allow-jpeg-conversion") boolean jpegConversionAllowed,
      @Named("shindig.image-rewrite.jpeg-compression") float jpegCompression,
      @Named("shindig.image-rewrite.min-threshold-bytes") int minThresholdBytes,
      @Named("shindig.image-rewrite.jpeg-huffman-optimization") boolean jpegHuffmanOptimization,
      @Named("shindig.image-rewrite.jpeg-retain-subsampling") boolean jpegRetainSubsampling);  OptimizerConfig(); int getMaxInMemoryBytes(); int getMaxPaletteSize(); boolean isJpegConversionAllowed(); float getJpegCompression(); int getMinThresholdBytes(); boolean getJpegHuffmanOptimization(); boolean getJpegRetainSubsampling();  }### Answer:
@Test public void testForHighJpegCompression() { OptimizerConfig config = new OptimizerConfig(1024 * 1024, 256, true, 1.00f, 200, false, false); assertEquals(0.9f, config.getJpegCompression(), 0.0001); }
@Test public void testForLowJpegCompression() { OptimizerConfig config = new OptimizerConfig(1024 * 1024, 256, true, 0.10f, 200, false, false); assertEquals(0.5f, config.getJpegCompression() , 0.0001); }
@Test public void testForAcceptableJpegCompression() { OptimizerConfig config = new OptimizerConfig(1024 * 1024, 256, true, 0.85f, 200, false, false); assertEquals(0.85f, config.getJpegCompression(), 0.0001); }