public void attachToException(Throwable throwable)
    {
        requireNonNull(throwable, "throwable is null");
        throwable.addSuppressed(new OrcDataSourceIdStackInfoException(this));
    }
@Test
    public void testAttachToException()
    {
        OrcDataSourceId orcDataSourceId = new OrcDataSourceId("test id");
        try {
            throw new RuntimeException("Top exception");
        }
        catch (RuntimeException e) {
            orcDataSourceId.attachToException(e);
            e.printStackTrace();

            assertEquals(e.getSuppressed().length, 1);
            assertEquals(e.getSuppressed()[0].getMessage(), "Failed to read ORC file: test id");
            assertEquals(e.getSuppressed()[0].getStackTrace().length, 0);

            String stackTrace = Throwables.getStackTraceAsString(e);
            assertTrue(stackTrace.contains("Top exception"));
            assertTrue(stackTrace.contains("Failed to read ORC file: test id"));
        }
    }