List<String> contentTypeValues = restResponse.getHeaderValues(RestConstants.HEADER_CONTENT_TYPE);
Assert.assertTrue(contentTypeValues.size() == 1);
Assert.assertEquals(contentTypeValues.get(0), HEADER_VALUE_APPLICATION_JSON);
InputStream traceRawStream = restResponse.getEntity().asInputStream();
JsonTraceCodec codec = new JsonTraceCodec();
try
{
Trace trace = codec.decode(traceRawStream);
Assert.assertNotNull(trace);
Assert.assertNotNull(trace.getValue());
Assert.assertNotEquals(trace.getValue(), "");
}
catch (IOException exc)