public StreamResponse getResponse()
  {
    return _response;
  }
@Test
  public void testWritableStacktraceDisabled()
  {
    Throwable throwable = new Exception("Inner exception message");
    StreamResponse resposne = new StreamResponseBuilder().build(EntityStreams.emptyStream());
    StreamException exception = new StreamException(resposne, "Outer exception message", throwable,
        WRITABLE_STACKTRACE_DISABLED);

    Assert.assertEquals(exception.getMessage(), "Outer exception message");
    Assert.assertEquals(exception.getStackTrace().length, 0);
    Assert.assertEquals(exception.getResponse().getStatus(), 200);
    Assert.assertNotNull(exception.getCause());
    Assert.assertSame(exception.getCause(), throwable);
    Assert.assertTrue(exception.getCause().getStackTrace().length > 0);
    Assert.assertEquals(exception.getCause().getMessage(), "Inner exception message");
  }