@Test
public void testGetSetErrors() {

    RuntimeException testRuntimeException = new RuntimeException("Something went wrong");
    Event testEvent = new Event(testRuntimeException, config,
        handledState, NoopLogger.INSTANCE);
    List<Error> errors = testEvent.getErrors();
    // First error should match the testException
    assertEquals(testRuntimeException.getClass().getName(), errors.get(0).getErrorClass());
    assertEquals(testRuntimeException.getMessage(), errors.get(0).getErrorMessage());
}