### Question:
ChecksumParamConverter implements ParamConverter<String> { @Override public String fromString(String value) { return stringMatchLogic(value); } ChecksumParamConverter(); @Override String fromString(String value); @Override String toString(String value);  }### Answer:
@Test void testSimpleChecksum() { final String checksum = "checksum"; assertEquals("checksum", converter.fromString(checksum), "Should directly match"); }
@Test void testMalformedChecksum() { final String checksum = "checksum-deflate"; assertEquals("checksum-deflate", converter.fromString(checksum), "Should directly match"); }
@Test void testNullChecksum() { assertNull(converter.fromString(null), "Should have null value"); }
@Test void testGzipChecksum() { final String checksum = "checksum--gzip"; assertEquals("checksum", converter.fromString(checksum), "Should have stripped gzip"); }