@Test
public void testBuildOfGenericException() {

    List<ErrorResponses.StackTraceRepresentation> mappedError;
    try {
        throw new IOException("simulated I/O error");
    } catch (IOException e) {
        mappedError = ErrorResponses.buildExceptionContext(e);
    }
    assertThat(mappedError, is(hasSize(1)));
}