@NonNull
  @Override
  public EncodeStrategy getEncodeStrategy(@NonNull Options options) {
    Boolean encodeTransformation = options.get(ENCODE_TRANSFORMATION);
    return encodeTransformation != null && encodeTransformation
        ? EncodeStrategy.TRANSFORMED
        : EncodeStrategy.SOURCE;
  }
@Test
  public void testEncodeStrategy_withEncodeTransformationUnSet_returnsSource() {
    options.set(ReEncodingGifResourceEncoder.ENCODE_TRANSFORMATION, null);
    assertThat(encoder.getEncodeStrategy(options)).isEqualTo(EncodeStrategy.SOURCE);
  }