@Test
public void testEncodeValue() throws Throwable {

	final Report report = new Report(ExtractionStatus.FAILURE_NOT_PARSED, new IOException("Failed to parse."));
	final SQLMapCodec<Path, Report> codec = new SQLReportCodec(documentFactory);
	final Map<String, Object> map = codec.encodeValue(report);
	Assert.assertEquals("FAILURE_NOT_PARSED", map.get("extraction_status"));
	final Object exception = map.get("exception");
	Assert.assertNotNull(exception);
	Assert.assertTrue(exception.toString().contains("Failed to parse."));
}